/* Split Screen Auth Layout */
.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    position: relative;
    overflow: hidden;
}

/* Right Side - Form Section */
.auth-form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #ffffff;
    position: relative;
    z-index: 2;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 450px;
    animation: slideInRight 0.6s ease-out;
}

/* Left Side - Hero Section */
.auth-hero-section {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: white;
    position: relative;
    overflow: hidden;
}

.auth-hero-content {
    text-align: center;
    z-index: 2;
    animation: slideInLeft 0.6s ease-out;
}

.auth-hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

.auth-hero-icon {
    font-size: 120px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.auth-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.auth-hero-description {
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.8;
}

/* Form Styles */
.auth-card {
    background: white;
}

.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.auth-subtitle {
    color: #718096;
    font-size: 0.95rem;
}

.auth-form-group {
    margin-bottom: 20px;
    position: relative;
}

.auth-form-label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-weight: 500;
    font-size: 0.9rem;
}

.auth-form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.auth-form-control:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.auth-form-control::placeholder {
    color: #a0aec0;
}

/* Button Styles */
.auth-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.auth-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.auth-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.auth-btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Loading State */
.auth-btn.loading {
    color: transparent;
    pointer-events: none;
}

.auth-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

/* Links */
.auth-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.auth-divider {
    margin: 30px 0;
    text-align: center;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider span {
    background: white;
    padding: 0 15px;
    color: #718096;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Radio Buttons */
.auth-radio-group {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.auth-radio-item {
    flex: 1;
}

.auth-radio-label {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.auth-radio-label:hover {
    border-color: #cbd5e0;
    background: white;
}

.auth-radio-input:checked + .auth-radio-label {
    border-color: #667eea;
    background: #eef2ff;
}

.auth-radio-input {
    margin-right: 10px;
}

/* Validation */
.text-danger {
    color: #e53e3e;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.validation-summary-errors {
    background: #fff5f5;
    border: 1px solid #fc8181;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 20px;
}

/* Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes moveBackground {
    from {
        transform: translate(0, 0);
    }
    to {
        transform: translate(50px, 50px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column-reverse;
    }
    
    .auth-hero-section {
        min-height: 250px;
        padding: 40px 20px;
    }
    
    .auth-hero-icon {
        font-size: 80px;
        margin-bottom: 15px;
    }
    
    .auth-hero-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .auth-hero-description {
        font-size: 0.95rem;
    }
    
    .auth-form-section {
        padding: 30px 20px;
    }
    
    .auth-form-wrapper {
        max-width: 100%;
    }
    
    .auth-title {
        font-size: 1.6rem;
    }
    
    .auth-radio-group {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .auth-hero-section {
        min-height: 200px;
        padding: 30px 15px;
    }
    
    .auth-hero-icon {
        font-size: 60px;
    }
    
    .auth-hero-title {
        font-size: 1.5rem;
    }
    
    .auth-form-section {
        padding: 20px 15px;
    }
    
    .auth-form-control {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
    
    .auth-btn {
        padding: 12px;
        font-size: 0.95rem;
    }
}

/* RTL Support */
[dir="rtl"] .auth-radio-input {
    margin-right: 0;
    margin-left: 10px;
}

/* Small text helper */
.auth-helper-text {
    font-size: 0.85rem;
    color: #718096;
    margin-top: 6px;
    display: block;
}

/* Success Message */
.auth-success {
    background: #f0fff4;
    border: 1px solid #68d391;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    color: #22543d;
}

/* Password Toggle */
.password-toggle-wrapper {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s ease;
    z-index: 10;
}

.password-toggle-btn:hover {
    color: #4a5568;
}

/* Password input padding for icon space */
.password-toggle-wrapper .auth-form-control {
    padding-right: 45px;
}

/* RTL - Icon on Left */
[dir="rtl"] .password-toggle-btn {
    right: auto;
    left: 12px;
}

[dir="rtl"] .password-toggle-wrapper .auth-form-control {
    padding-right: 16px;
    padding-left: 45px;
}
