/* Modern Authentication Pages Styles */

.auth-container {
    min-height: 100vh;
    display: flex;
    background: #f8fafc;
    overflow: hidden;
}

/* Left Side - Branding */
.auth-left {
    flex: 1;
    background: linear-gradient(135deg, #1e40af 0%, #0891b2 100%);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -200px;
    right: -200px;
}

.auth-left::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
}

.auth-brand {
    position: relative;
    z-index: 1;
    text-align: center;
}

.auth-brand-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    background: white;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.auth-brand h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
    color: white;
    letter-spacing: -0.02em;
}

.auth-brand p {
    font-size: 16px;
    color: white;
    opacity: 0.95;
    line-height: 1.7;
    max-width: 400px;
    letter-spacing: -0.01em;
}

.auth-features {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 16px;
}

.auth-feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-feature-text h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: white;
}

.auth-feature-text p {
    font-size: 14px;
    color: white;
    opacity: 0.9;
}

/* Right Side - Form */
.auth-right {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
    position: relative;
}

.auth-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 12px;
    color: #64748b;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.auth-close-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: translateY(-2px);
}

.auth-form-container {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
}

.auth-header {
    margin-bottom: 40px;
}

.auth-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.auth-header p {
    font-size: 15px;
    color: #64748b;
    letter-spacing: -0.01em;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group-auth {
    display: flex;
    flex-direction: column;
}

.form-group-auth label {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    letter-spacing: 0;
}

.form-group-auth input,
.form-group-auth select {
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8fafc;
    letter-spacing: -0.01em;
}

.form-group-auth input:focus,
.form-group-auth select:focus {
    outline: none;
    border-color: #1e40af;
    background: white;
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
}

.form-group-auth small {
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
}

.form-group-auth {
    position: relative;
}

.forgot-password-link {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 13px;
    color: #1e40af;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.forgot-password-link:hover {
    color: #0891b2;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
}

.btn-auth {
    padding: 14px 24px;
    background: linear-gradient(135deg, #1e40af 0%, #0891b2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(30, 64, 175, 0.4);
    background: linear-gradient(135deg, #1e3a8a 0%, #0e7490 100%);
}

.btn-auth:active {
    transform: translateY(0);
}

.btn-auth:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.auth-divider span {
    color: #94a3b8;
    font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-link {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    margin-top: 24px;
}

.auth-link a {
    color: #1e40af;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.auth-link a:hover {
    color: #0891b2;
}

.auth-link a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0891b2;
    transition: width 0.3s ease;
}

.auth-link a:hover::after {
    width: 100%;
}

.form-message {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    display: none;
    animation: slideIn 0.3s ease;
}

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

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
    display: block;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .auth-left {
        padding: 40px;
    }
    
    .auth-right {
        padding: 40px;
    }
    
    .auth-brand h1 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-left {
        padding: 40px 24px;
        min-height: auto;
    }
    
    .auth-brand-logo {
        width: 80px;
        height: 80px;
    }
    
    .auth-brand h1 {
        font-size: 24px;
    }
    
    .auth-brand p {
        font-size: 16px;
    }
    
    .auth-features {
        display: none;
    }
    
    .auth-right {
        padding: 32px 24px;
    }
    
    .auth-header h2 {
        font-size: 24px;
    }
    
    .form-row-auth {
        grid-template-columns: 1fr;
    }
}
