/* Modern Authentication Styles */

/* Main Auth Section */
.modern-auth-section {
    min-height: 100vh;
    position: relative;
    background: #f8fafc;
}

/* Clean Background */
.auth-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-shapes {
    display: none;
}

/* Close Button */
.auth-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    font-size: 20px;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.auth-close-btn:hover {
    background: #f7fafc;
    color: #2d3748;
    transform: scale(1.1);
}

/* Brand Section */
.auth-brand-section {
    padding: 60px 40px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.brand-content {
    margin-bottom: 40px;
}

.brand-logo img {
    max-height: 60px;
    margin-bottom: 30px;
}

.brand-title {
    color: #2d3748;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.brand-subtitle {
    color: #718096;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.brand-illustration {
    text-align: center;
}

.brand-illustration img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Form Container */
.auth-form-container {
    padding: 40px;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.auth-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    animation: slideInUp 0.6s ease-out;
}

.register-card {
    max-width: 600px;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.mobile-logo img {
    max-height: 50px;
}

.auth-title {
    color: #2d3748;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Form Styles */
.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #a0aec0;
    font-size: 18px;
    z-index: 3;
    transition: color 0.3s ease;
}

.modern-input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
    outline: none;
}

.modern-input:focus {
    border-color: hsl(var(--base));
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modern-input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
    color: hsl(var(--base));
}

.password-toggle {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #a0aec0;
    font-size: 18px;
    cursor: pointer;
    z-index: 3;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: hsl(var(--base));
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-checkbox input[type=\"checkbox\"] {
    width: 18px;
    height: 18px;
    accent-color: hsl(var(--base));
}

.custom-checkbox label {
    color: #4a5568;
    font-size: 14px;
    margin: 0;
    cursor: pointer;
}

.forgot-link {
    color: hsl(var(--base));
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: hsl(var(--base-600));
}

/* Modern Button */
.btn-modern {
    position: relative;
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-modern.btn-primary {
    background: linear-gradient(135deg, hsl(var(--base)) 0%, hsl(var(--base-600)) 100%);
    color: white;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-modern:active {
    transform: translateY(0);
}

.btn-loader {
    display: none;
}

.btn-modern.loading .btn-text {
    display: none;
}

.btn-modern.loading .btn-loader {
    display: block;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.auth-footer p {
    color: #718096;
    margin: 0;
    font-size: 14px;
}

.auth-link {
    color: hsl(var(--base));
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: hsl(var(--base-600));
}

/* Policy Links */
.policy-link {
    color: hsl(var(--base));
    text-decoration: none;
    font-weight: 500;
}

.policy-link:hover {
    color: hsl(var(--base-600));
    text-decoration: underline;
}

/* Modern Modal */
.modern-modal {
    border-radius: 15px;
    border: none;
    overflow: hidden;
}

.modern-modal .modal-header {
    background: linear-gradient(135deg, hsl(var(--base)) 0%, hsl(var(--base-600)) 100%);
    color: white;
    border: none;
    padding: 20px 25px;
}

.modern-modal .modal-title {
    font-weight: 600;
    margin: 0;
}

.modern-modal .btn-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    opacity: 0.8;
}

.modern-modal .btn-close:hover {
    opacity: 1;
}

.modern-modal .modal-body {
    padding: 30px 25px;
}

.modal-icon {
    font-size: 3rem;
    color: hsl(var(--base));
    margin-bottom: 15px;
}

.modern-modal .modal-footer {
    border: none;
    padding: 20px 25px;
    gap: 10px;
}

/* Responsive Design */
@media (max-width: 991px) {
    .modern-auth-section {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    
    .auth-form-container {
        padding: 20px;
        height: auto;
        min-height: 100vh;
    }
    
    .auth-card {
        margin: 20px 0;
        padding: 30px 25px;
    }
    
    .brand-title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .auth-close-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .auth-card {
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .modern-input {
        padding: 12px 12px 12px 45px;
        font-size: 15px;
    }
    
    .input-icon {
        left: 12px;
        font-size: 16px;
    }
    
    .password-toggle {
        right: 12px;
        font-size: 16px;
    }
    
    .btn-modern {
        padding: 12px 25px;
        font-size: 15px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 575px) {
    .auth-form-container {
        padding: 15px;
    }
    
    .auth-card {
        padding: 20px 15px;
    }
    
    .modern-input {
        padding: 10px 10px 10px 40px;
        font-size: 14px;
    }
    
    .input-icon {
        left: 10px;
        font-size: 15px;
    }
    
    .password-toggle {
        right: 10px;
        font-size: 15px;
    }
}

/* Social Login Enhancement */
.social-login-section {
    margin: 25px 0;
}

.other-option {
    margin: 25px 0;
    position: relative;
    text-align: center;
}

.other-option::before {
    position: absolute;
    content: "";
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e2e8f0;
    z-index: 1;
}

.other-option__text {
    background: white;
    color: #718096;
    padding: 0 15px;
    font-size: 14px;
    position: relative;
    z-index: 2;
    font-weight: 500;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    color: #4a5568;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.social-btn i {
    font-size: 18px;
}

.facebook-btn {
    border-color: #1877f2;
    color: #1877f2;
}

.facebook-btn:hover {
    background: #1877f2;
    color: white;
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.3);
}

.google-btn {
    border-color: #db4437;
    color: #db4437;
}

.google-btn:hover {
    background: #db4437;
    color: white;
    box-shadow: 0 8px 20px rgba(219, 68, 55, 0.3);
}

.linkedin-btn {
    border-color: #0077b5;
    color: #0077b5;
}

.linkedin-btn:hover {
    background: #0077b5;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 119, 181, 0.3);
}

@media (min-width: 576px) {
    .social-buttons {
        flex-direction: row;
    }
    
    .social-btn {
        flex: 1;
    }
    
    .social-btn span {
        display: none;
    }
}

@media (min-width: 768px) {
    .social-btn span {
        display: inline;
    }
}

/* Captcha Styling */
.captchaInput .input-wrapper {
    margin-top: 10px;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 5px;
    height: 3px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-weak { background: #f56565; width: 25%; }
.strength-fair { background: #ed8936; width: 50%; }
.strength-good { background: #38b2ac; width: 75%; }
.strength-strong { background: #48bb78; width: 100%; }

/* Animation for form elements */
.form-group {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus states for better accessibility */
.modern-input:focus,
.custom-checkbox input:focus,
.btn-modern:focus {
    outline: 2px solid hsl(var(--base));
    outline-offset: 2px;
}

/* Loading state for form submission */
.auth-form.loading {
    pointer-events: none;
    opacity: 0.7;
}

.auth-form.loading .modern-input {
    background: #f7fafc;
}