/* Authentication Page Styles */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #000000 0%, #DC143C 50%, #B22222 100%);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-logo {
    height: 70px;
    width: auto;
    max-width: 80px;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    object-fit: contain;
    background: transparent;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.auth-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

.auth-header h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.age-notice {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(220, 20, 60, 0.1);
    border-radius: 20px;
    display: inline-block;
}

.auth-form {
    margin-bottom: 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(220, 20, 60, 0.1);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.4;
}

.btn-full {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    background: linear-gradient(135deg, #DC143C, #B22222);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-full:hover::before {
    left: 100%;
}

.btn-full:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.3);
}

.btn-full:active {
    transform: translateY(-1px);
}

.auth-footer {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.auth-footer p {
    margin-bottom: 0.75rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.auth-footer a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-footer a:hover {
    text-decoration: underline;
    color: #B22222;
}

.auth-copyright {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    background-color: #000000 !important;
    border-radius: 0 0 20px 20px;
    margin-left: -3rem;
    margin-right: -3rem;
    margin-bottom: -3rem;
}

.auth-copyright .footer-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-copyright .footer-link:hover {
    color: #B22222;
    text-decoration: underline;
}

.alert {
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-weight: 600;
    border-left: 4px solid;
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background: rgba(248, 215, 218, 0.8);
    color: #721C24;
    border-left-color: #DC3545;
}

.alert-success {
    background: rgba(212, 237, 218, 0.8);
    color: #155724;
    border-left-color: #28A745;
}

.password-requirements {
    background: rgba(240, 240, 240, 0.8);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

.password-requirements h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
}

.password-requirements ul {
    list-style: none;
    padding-left: 0;
}

.password-requirements li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.password-requirements li:hover {
    padding-left: 0.5rem;
}

.password-requirements .requirement-met {
    color: var(--success-color);
}

.password-requirements .requirement-unmet {
    color: var(--error-color);
}

.password-requirements .checkmark {
    margin-right: 0.75rem;
    font-weight: bold;
    font-size: 1.1rem;
}

@media (max-width: 480px) {
    .auth-container {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 2rem;
        border-radius: 16px;
    }
    
    .auth-header h1 {
        font-size: 1.7rem;
    }
    
    .auth-logo {
        height: 60px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-group input {
        padding: 0.875rem;
    }
    
    .btn-full {
        padding: 0.875rem;
    }
}