* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f5f7fb;
    color: #0b1a2e;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: #0b1a2e;
    color: #b0c7de;
    padding: 10px 0;
    font-size: 0.85rem;
    border-bottom: 2px solid #c52a2a;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.top-bar a {
    color: #b0c7de;
    margin: 0 8px;
    transition: 0.2s;
    text-decoration: none;
}

.top-bar a:hover {
    color: #facc15;
}

.top-bar .social a {
    margin: 0 6px;
    font-size: 0.9rem;
}

/* ===== HEADER ===== */
.main-header {
    background: #ffffff;
    padding: 16px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(2px);
    border-bottom: 1px solid rgba(197, 42, 42, 0.15);
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #0b1a2e;
    letter-spacing: -0.5px;
}

.logo h1 span {
    color: #c52a2a;
}

.logo small {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: #5a6f87;
    letter-spacing: 1px;
    margin-top: -4px;
}

.nav-links {
    display: flex;
    gap: 28px;
    font-weight: 600;
    align-items: center;
}

.nav-links a {
    color: #1e2f44;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #c52a2a;
    transition: 0.25s;
}

.nav-links a:hover {
    color: #c52a2a;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: #c52a2a;
}

.nav-links a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid #c52a2a;
    padding: 8px 20px;
    border-radius: 40px;
    color: #c52a2a;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.btn-outline:hover {
    background: #c52a2a;
    color: white;
    box-shadow: 0 6px 14px rgba(197, 42, 42, 0.25);
}

.btn-solid {
    background: #c52a2a;
    border: none;
    padding: 8px 24px;
    border-radius: 40px;
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.btn-solid:hover {
    background: #a31f1f;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(197, 42, 42, 0.3);
}

/* ===== PAGE HERO ===== */
.page-hero {
    background: linear-gradient(135deg, #0b1a2e 0%, #1a3552 100%);
    color: white;
    padding: 50px 0 46px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(197, 42, 42, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.page-hero h1 span {
    color: #facc15;
}

.page-hero p {
    font-size: 1.15rem;
    opacity: 0.8;
    max-width: 600px;
    margin-top: 8px;
    position: relative;
    z-index: 2;
}

/* ===== LOGIN FORM ===== */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex: 1;
    padding-bottom: 40px;
}

.login-card {
    background: white;
    border-radius: 28px;
    padding: 40px 36px;
    border: 1px solid #edf2f7;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 480px;
    transition: 0.3s;
}

.login-card:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.login-card .logo-icon {
    text-align: center;
    margin-bottom: 24px;
}

.login-card .logo-icon i {
    font-size: 3.2rem;
    color: #c52a2a;
    background: #fef0ee;
    padding: 16px;
    border-radius: 50%;
}

.login-card h2 {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.login-card .subtitle {
    text-align: center;
    color: #4a5f78;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.login-card label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.login-card input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid #dce2ec;
    font-family: inherit;
    font-size: 0.95rem;
    transition: 0.2s;
    background: #fafbfc;
    margin-bottom: 16px;
}

.login-card input:focus {
    outline: none;
    border-color: #c52a2a;
    box-shadow: 0 0 0 3px rgba(197, 42, 42, 0.1);
}

.login-card .input-group {
    position: relative;
}

.login-card .input-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #8a9db0;
}

.login-card .input-group input {
    padding-left: 44px;
}

.login-card .options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.login-card .options a {
    color: #c52a2a;
    text-decoration: none;
    font-weight: 600;
}

.login-card .options a:hover {
    text-decoration: underline;
}

.login-card .options label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    cursor: pointer;
}

.login-card .options input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: #c52a2a;
}

.login-card .btn-login {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    justify-content: center;
    border-radius: 12px;
}

.login-card .register-link {
    text-align: center;
    margin-top: 20px;
    color: #4a5f78;
    font-size: 0.95rem;
}

.login-card .register-link a {
    color: #c52a2a;
    font-weight: 700;
    text-decoration: none;
}

.login-card .register-link a:hover {
    text-decoration: underline;
}

.login-card .divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    color: #8a9db0;
    font-size: 0.85rem;
}

.login-card .divider::before,
.login-card .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dce2ec;
}

.login-card .social-login {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.login-card .social-login a {
    background: #f5f7fb;
    border: 1px solid #dce2ec;
    border-radius: 12px;
    padding: 10px 18px;
    color: #0b1a2e;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    flex: 1;
    justify-content: center;
}

.login-card .social-login a:hover {
    border-color: #c52a2a;
    background: #fef0ee;
}

.login-card .social-login a i {
    font-size: 1.2rem;
}

/* ===== FOOTER ===== */
.footer {
    background: #0b1a2e;
    color: #b0c7de;
    padding: 32px 0 24px;
    margin-top: auto;
    border-top: 4px solid #c52a2a;
}

.footer a {
    color: #b0c7de;
    text-decoration: none;
    transition: 0.2s;
}

.footer a:hover {
    color: #facc15;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 14px;
    font-size: 1.05rem;
}

.footer-bottom {
    border-top: 1px solid #1e3550;
    padding-top: 20px;
    margin-top: 24px;
    text-align: center;
    font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .header-flex {
        flex-direction: column;
        gap: 12px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .login-card {
        padding: 28px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .login-card .social-login {
        flex-direction: column;
    }
}