* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: linear-gradient(145deg, #f6f9fc 0%, #e9f0f5 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.auth-wrapper {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.auth-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 40px;
    padding: 2.5rem 2rem;
    box-shadow: 0 25px 50px -10px rgba(0, 20, 30, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

.brand {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    font-size: 2.4rem;
    display: block;
    line-height: 1;
}

.brand h1 {
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: -0.5px;
    color: #0b1b2b;
    margin-top: 0.2rem;
}

.brand p {
    color: #4a5b6e;
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.7;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.auth-form h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #0b1b2b;
    margin-bottom: 0.3rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #1e2e3f;
    letter-spacing: 0.3px;
}

.input-group input {
    padding: 0.9rem 1rem;
    border: 1.5px solid #dbe2e9;
    border-radius: 16px;
    font-size: 1rem;
    background: #ffffff;
    transition: border 0.15s, box-shadow 0.15s;
    outline: none;
}

.input-group input:focus {
    border-color: #2d7aff;
    box-shadow: 0 0 0 4px rgba(45, 122, 255, 0.1);
}

.btn-primary {
    background: #0b1b2b;
    color: white;
    border: none;
    padding: 0.9rem 1.2rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s ease;
    margin-top: 0.5rem;
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    background: #1a2f44;
    transform: scale(1.01);
    box-shadow: 0 8px 20px rgba(11, 27, 43, 0.2);
}

.btn-primary:active {
    transform: scale(0.98);
}

.toggle-auth {
    text-align: center;
    font-size: 0.95rem;
    color: #2d3f53;
}

.toggle-auth a {
    color: #0b1b2b;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dotted #a0b3c7;
}

.toggle-auth a:hover {
    border-bottom: 2px solid #0b1b2b;
}

.hidden {
    display: none !important;
}

.message {
    font-size: 0.9rem;
    padding: 0.4rem 0.2rem;
    min-height: 1.8rem;
    border-radius: 8px;
    font-weight: 500;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.8rem 1.2rem;
        border-radius: 28px;
    }
    .brand h1 {
        font-size: 1.6rem;
    }
}