:root {
    --color-primary-dark: #1F2D4A;
    --color-primary-light: #3C5271;
    --color-accent-teal: #00A896;
    --color-accent-peach: #FF8F6A;
    --color-error: #E74C3C;
    --color-background-light: #FBFBFB;
    --color-background-medium: #EFF3F6;
    --color-text-dark: #2C3E50;
    --color-text-medium: #6D7F9B;
    --color-white: #ffffff;
    --shadow-light: 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 8px 20px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 15px 35px rgba(0, 0, 0, 0.15);
    --border-radius-card: 16px;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

body {
    background-color: var(--color-background-light);
    color: var(--color-text-dark);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
    font-size: 15px;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: none;
    color: inherit;
}

#particles-js {
    display: none;
}

header {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    box-shadow: var(--shadow-medium);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    padding: 10px 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--color-white);
    font-weight: 600;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    max-width: 60%;
}

.logo:hover {
    transform: scale(1.01);
}

.logo img {
    height: 48px;
    width: 48px;
    margin-right: 10px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.logo h1 {
    font-size: 22px;
    font-family: var(--font-heading);
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.live-clock {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--color-white);
    font-weight: 200;
    padding: 5px 0;
    position: relative;
    transition: color 0.2s ease, transform 0.1s ease;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.3px;
}

.nav-links a i {
    margin-right: 5px;
    font-size: 15px;
}

.nav-links a:hover {
    color: var(--color-accent-teal);
    transform: translateY(-1px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--color-accent-teal);
    left: 0;
    bottom: 0;
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-links a:hover::after {
    width: 100%;
}

.header-boxes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 5;
}

.header-box {
    position: absolute;
    border-radius: 8px;
    opacity: 0.07;
    animation: float 15s infinite ease-in-out;
    background-color: rgba(255, 255, 255, 0.08);
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.07; }
    50% { transform: translateY(15px) rotate(3deg); opacity: 0.1; }
}

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-background-medium) 0%, var(--color-background-light) 100%);
    z-index: 1;
    padding-top: 20px;
}

.hero-diagonal-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, var(--color-primary-dark) 55%, transparent 55.1%);
    transform-origin: top left;
    z-index: 2;
    pointer-events: none;
}

.hero-diagonal-shape::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M100 0L0 100H100V0Z" fill="rgba(255,255,255,0.02)"/%3E%3C/svg%3E');
    background-size: 18px 18px;
    opacity: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 5;
    display: flex;
    width: 100%;
    max-width: 1080px;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    margin-top: -70px;
}

.hero-text {
    flex: 1;
    color: var(--color-white);
    padding-right: 30px;
    max-width: 58%;
    z-index: 6;
}

.hero-text h2 {
    font-size: 40px;
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.25;
    text-shadow: 0 2px 6px rgba(0,0,0,0.2);
    background: linear-gradient(90deg, var(--color-accent-teal), var(--color-accent-peach));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 550px;
    text-align: left;
}

.login-card {
    flex-shrink: 0;
    width: 360px;
    background: var(--color-white);
    padding: 30px;
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-strong);
    position: relative;
    z-index: 7;
    transform: translateX(0px);
    transition: transform 0.3s ease-out, box-shadow 0.2s ease;
    animation: cardEntrance 1s forwards cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(0,0,0,0.02);
}

@keyframes cardEntrance {
    0% { opacity: 0; transform: translateX(60px) scale(0.98); }
    100% { opacity: 1; transform: translateX(0px) scale(1); }
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.welcome-message {
    margin-bottom: 10px;
    text-align: center;
}

.welcome-message .login-message-line {
    font-size: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
    color: var(--color-text-dark);
}

.welcome-message .login-message-line .text-green { color: var(--color-accent-teal); }
.welcome-message .login-message-line .text-red { color: var(--color-error); }

.login-card .maintenance-message {
    padding: 25px;
    background-color: var(--color-background-medium);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    color: var(--color-text-dark);
    text-align: center;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 0;
    font-weight: 500;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.02);
}

.login-card .maintenance-message strong {
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
    font-size: 1.2em;
}

.form-control {
    height: 48px;
    font-size: 12px;
    border-radius: 9px;
    border: 1px solid #d8dce2;
    padding-left: 45px;
    padding-right: 45px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
    background-color: var(--color-background-light);
}

.form-control:focus {
    border-color: var(--color-accent-teal);
    box-shadow: 0 0 0 0.18rem rgba(0, 168, 150, 0.12), inset 0 1px 2px rgba(0, 0, 0, 0.03);
    background-color: var(--color-white);
}

.input-group {
    position: relative;
    margin-bottom: 22px;
}

.input-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--color-text-medium);
    z-index: 2;
    transition: color 0.2s ease;
}

.input-icon.left { left: 15px; }
.input-icon.right { right: 15px; cursor: pointer; }

.btn-primary {
    background: linear-gradient(45deg, var(--color-accent-teal), var(--color-primary-light));
    border: none;
    height: 30px;
    font-size: 12px;
    border-radius: 25px;
    font-weight: 400;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 5px 12px rgba(0, 168, 150, 0.25);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--color-primary-dark), var(--color-primary-light));
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(30, 45, 74, 0.25);
    letter-spacing: 1.2px;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

#btn-eye:hover { color: var(--color-primary-light); }

.section { padding: 90px 0; position: relative; z-index: 1; }
.features-section { background-color: var(--color-background-light); }
.instructions-section { background-color: var(--color-background-medium); }

.section-title { text-align: center; margin-bottom: 70px; }
.section-title h2 {
    font-size: 36px;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-primary-dark);
    margin-bottom: 18px;
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-title h2::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 4px;
    background: linear-gradient(to right, var(--color-accent-teal), var(--color-accent-peach));
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}
.section-title p {
    color: var(--color-text-medium);
    font-size: 18px;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    justify-content: center;
    align-items: stretch;
}

.card-item {
    background-color: var(--color-white);
    border-radius: var(--border-radius-card);
    padding: 30px;
    box-shadow: var(--shadow-light);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.015);
}

.card-item:hover { transform: translateY(-8px); box-shadow: var(--shadow-medium); }
.card-icon {
    width: 75px;
    height: 75px;
    background: linear-gradient(45deg, var(--color-accent-teal), var(--color-primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    box-shadow: 0 5px 12px rgba(0, 168, 150, 0.25);
    border: 3px solid var(--color-white);
}
.card-icon i { font-size: 34px; color: var(--color-white); }
.card-item h3 { font-size: 22px; margin-bottom: 12px; color: var(--color-primary-dark); font-family: var(--font-heading); font-weight: 700; }
.card-item p { color: var(--color-text-medium); line-height: 1.6; font-size: 15px; }

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px 20px;
    position: relative;
}

.step-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-card);
    padding: 30px 20px;
    box-shadow: var(--shadow-light);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    position: relative;
    z-index: 1;
    padding-top: 60px;
    border: 1px solid rgba(0,0,0,0.015);
}

.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-medium); }
.step-number {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--color-accent-peach);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 26px;
    box-shadow: 0 5px 12px rgba(255, 143, 106, 0.35);
    border: 3px solid var(--color-background-medium);
}
.step-card h3 { margin-top: 15px; font-size: 18px; color: var(--color-primary-dark); font-family: var(--font-heading); font-weight: 700; }
.step-card p { font-size: 14px; color: var(--color-text-medium); line-height: 1.5; }

footer {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    padding: 45px 0 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-logo { display: flex; align-items: center; margin-right: 20px; margin-bottom: 10px; }
.footer-logo img { height: 40px; width: 40px; margin-right: 10px; border-radius: 50%; }
.footer-logo h3 { font-size: 18px; font-weight: 700; font-family: var(--font-heading); margin: 0; }
.footer-links { display: flex; list-style: none; flex-wrap: wrap; gap: 20px; margin-bottom: 10px; }
.footer-links a { color: rgba(255, 255, 255, 0.7); font-weight: 500; transition: color 0.2s ease; font-size: 14px; }
.footer-links a:hover { color: var(--color-accent-teal); }
.copyright { margin-top: 15px; color: rgba(255, 255, 255, 0.45); font-size: 12px; }

.offline-container {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 40px;
}

.offline-text {
    font-size: 40px;
    font-weight: 800;
    text-transform: uppercase;
    background: linear-gradient(to right, #ff416c, #ff4b2b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-shadow: 3px 3px 6px rgba(255, 65, 108, 0.2);
    letter-spacing: 5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@media (max-width: 992px) {
    .nav-links { display: none; }
    header { padding: 12px 0; }
    .header-content { flex-direction: column; gap: 6px; justify-content: center; }
    .logo { width: 100%; max-width: 100%; justify-content: center; }
    .logo h1 { font-size: 20px; }
    .logo img { height: 40px; width: 40px; }
    .live-clock { width: 100%; justify-content: center; font-size: 13px; text-align: center; }
    .hero { padding-top: 100px; padding-bottom: 40px; min-height: 100vh; height: auto; display: flex; align-items: flex-start; justify-content: center; }
    .hero-content-wrapper { flex-direction: column; margin-top: 0; justify-content: flex-start; align-items: center; width: 100%; height: auto; padding-top: 20px; }
    .hero-text { padding-right: 0; max-width: 95%; margin-bottom: 25px; text-align: center; }
    .hero-text h2 { font-size: 32px; margin: 0 auto; }
    .hero-text p { display: none; }
    .hero-diagonal-shape { background: linear-gradient(180deg, var(--color-primary-dark) 45%, transparent 45.1%); }
    .hero-diagonal-shape::before { background-size: 15px 15px; opacity: 0.03; }
    .login-card { width: 90%; max-width: 400px; animation: none; transform: translateX(0); padding: 30px; margin: 0 auto; }
    .section-title h2 { font-size: 32px; }
    .section-title p { font-size: 17px; }
    .card-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
    .footer-content { flex-direction: column; align-items: center; gap: 10px; }
    .footer-logo, .footer-links { margin-right: 0; margin-bottom: 0; }
    .footer-links { justify-content: center; width: 100%; margin-top: 10px; }
}

@media (max-width: 768px) {
    body { font-size: 14px; }
    .hero { padding-top: 95px; }
    .hero-diagonal-shape { background: linear-gradient(180deg, var(--color-primary-dark) 42%, transparent 42.1%); }
    .live-clock { font-size: 12px; }
    .hero-text h2 { font-size: 26px; }
    .login-card { padding: 25px; width: 92%; }
    .welcome-message .login-message-line { font-size: 12px; }
    .form-control { height: 42px; font-size: 14px; padding-left: 40px; padding-right: 40px; }
    .input-icon { font-size: 16px; }
    .section { padding: 70px 0; }
    .section-title h2 { font-size: 26px; }
    .section-title p { font-size: 15px; }
    .card-item { padding: 25px; }
    .card-icon { width: 65px; height: 65px; margin-bottom: 18px; }
    .card-item h3 { font-size: 19px; }
    .step-number { width: 45px; height: 45px; font-size: 24px; top: -15px; }
}

@media (max-width: 576px) {
    .container { padding: 0 15px; }
    .header-content { gap: 4px; }
    .logo h1 { font-size: 18px; }
    .logo img { height: 35px; width: 35px; margin-right: 8px; }
    .live-clock { font-size: 11px; }
    .hero { padding-top: 90px; }
    .hero-diagonal-shape { background: linear-gradient(180deg, var(--color-primary-dark) 38%, transparent 38.1%); }
    .hero-text h2 { font-size: 24px; line-height: 1.35; margin-bottom: 0; }
    .login-card { width: 100%; padding: 22px 18px; }
    .form-control { height: 40px; font-size: 13px; }
    .btn-primary { height: 40px; font-size: 14px; }
    .section { padding: 50px 0; }
    .section-title h2 { font-size: 22px; margin-bottom: 15px; }
    .section-title h2::after { width: 60px; height: 3px; bottom: -8px; }
    .card-grid, .instructions-grid { grid-template-columns: 1fr; gap: 15px; }
    .card-item { padding: 20px; }
    .card-icon { width: 55px; height: 55px; }
    .card-item h3 { font-size: 17px; }
    .step-card { padding-top: 45px; padding-bottom: 20px; }
    footer { padding: 30px 0 15px; }
    .footer-logo img { height: 30px; width: 30px; }
    .footer-logo h3 { font-size: 15px; }
    .footer-links { flex-direction: column; gap: 10px; }
}