.container {
    justify-content: center;
}

.login-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 480px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Subtle top accent */
.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
}

.login-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

h1 {
    text-align: center;
    color: var(--text-main);
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
}

input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    background: #f8fafc;
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.2s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(206, 14, 45, 0.1);
}

input::placeholder {
    color: #94a3b8;
}

.options {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.options a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.options a:hover {
    color: var(--primary);
    text-decoration: none;
}

@media (max-width: 480px) {
    .login-card {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .header {
        position: fixed;
        background: var(--surface);
    }
}

.auth-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.back-nav {
    width: 100%;
    max-width: 480px;
    margin-bottom: 1.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--primary);
}