:root {
    --primary: #000000;
    --primary-dark: #333333;
    --accent: #6a00ff;
    --bg-light: #ffffff;
    --text-main: #000000;
    --text-muted: #555555;
    --glass: rgba(0, 0, 0, 0.05);
    --glass-border: rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
}

.btn-premium {
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-glow {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(106, 0, 255, 0.7);
}

.title-gradient {
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Animations */
@keyframes pulse-glow {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.pulse {
    animation: pulse-glow 2s infinite ease-in-out;
}

/* ===== Header & Navigation ===== */
header {
    background-color: var(--primary-color, #012169);
    color: #fff;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    flex-wrap: wrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.logo {
    height: 60px;
    /* Reduced from 150px for better mobile fit */
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    font-size: 0.95rem;
}

nav ul li a:hover {
    opacity: 0.8;
}

.sign-in-btn {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.sign-in-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    text-decoration: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-left: auto;
    width: 30px;
    height: 24px;
    justify-content: space-between;
}

.hamburger span {
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 3px;
    transition: 0.3s;
}

/* Responsive Header */
@media (max-width: 768px) {
    header {
        padding: 10px 15px;
    }

    .logo {
        height: 45px;
    }

    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-color, #012169);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
        display: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    nav ul li a {
        display: block;
        padding: 15px;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }
}

/* ===== Sign In Page Styles ===== */
.signin-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background: url('https://images.unsplash.com/photo-1517486808906-6ca8b3f04846?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    min-height: calc(100vh - 80px);
    position: relative;
}

.signin-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
}

.signin-box {
    background-color: #fff;
    border-radius: 24px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.1);
    padding: 50px;
    max-width: 450px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: fadeIn 0.8s ease-out;
    border: 1px solid #eee;
    z-index: 10;
}

.signin-box h2 {
    color: var(--primary-color, #012169);
    margin-bottom: 10px;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.signin-box p.subtitle {
    color: #777;
    margin-bottom: 30px;
    font-size: 1rem;
}

.message {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: none;
    font-size: 0.95rem;
    font-weight: 600;
}

#errorMessage {
    background: #fff0f0;
    color: #d00;
    border: 1px solid #ffdcdc;
}

#successMessage {
    background: #f0fff4;
    color: #1a7f37;
    border: 1px solid #dcfce7;
}

.input-group {
    margin-bottom: 25px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #000;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group input {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    transition: var(--transition, 0.3s);
    background: #fff;
}

.input-group input:focus {
    border-color: #000;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.signin-btn {
    background: #000;
    color: #fff;
    border: none;
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition, 0.3s);
    margin-top: 10px;
}

.signin-btn:hover:not(:disabled) {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.signin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.signin-box p {
    margin-top: 25px;
    font-size: 0.95rem;
    color: #666;
}

.signin-box a {
    color: #000;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid #000;
    padding-bottom: 2px;
}

.signin-box a:hover {
    color: #555;
    border-color: #555;
}

footer {
    text-align: center;
    background: #fff;
    color: #000;
    padding: 30px;
    font-size: 0.95rem;
    border-top: 1px solid #eee;
    margin-top: auto;
}