/* ===================================
   Auth Pages Improvements CSS
   Login & Register Page Enhancements
   =================================== */

/* Social Login at Top */
.social-login-top {
    margin-bottom: 0;
}

.social-login-wrap.social-login-top a {
    margin-top: 0;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
}

.social-login-wrap.social-login-top a i {
    margin-right: 12px;
    font-size: 18px;
}

.social-login-wrap.social-login-top a span {
    flex: 0 0 auto;
}

/* Enhanced Social Button Hover States */
.social-login-wrap .facebook {
    border: 2px solid #1877f2;
    color: #1877f2;
    background: #fff;
}

.social-login-wrap .facebook:hover {
    background-color: #1877f2;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.social-login-wrap .google {
    border: 2px solid #db4437;
    color: #db4437;
    background: #fff;
}

.social-login-wrap .google:hover {
    background-color: #db4437;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(219, 68, 55, 0.3);
}

/* Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 30px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e2e2e2;
}

.auth-divider span {
    position: relative;
    display: inline-block;
    background: #fff;
    padding: 0 20px;
    color: #878a95;
    font-size: 14px;
    font-weight: 600;
    text-transform: lowercase;
}

/* Form Labels */
.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #353539;
}

/* Enhanced Form Inputs */
.account-form .form-group .form-control {
    border: 2px solid #e2e2e2;
    height: 50px;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.account-form .form-group .form-control:focus {
    border-color: var(--main-color-one, #ff8a73);
    box-shadow: 0 0 0 3px rgba(255, 138, 115, 0.1);
    outline: none;
}

.account-form .form-group select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 12px;
    padding-right: 40px;
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-control {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: 0;
    top: 0;
    height: 50px;
    width: 50px;
    background: none;
    border: none;
    color: #878a95;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: var(--main-color-one, #ff8a73);
}

.password-toggle:focus {
    outline: 2px solid var(--main-color-one, #ff8a73);
    outline-offset: 2px;
}

/* Enhanced Submit Button */
.submit-btn {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 8px;
    background: var(--main-color-one, #ff8a73);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--main-color-two, #5580ff);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 138, 115, 0.3);
}

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

.submit-btn:focus {
    outline: 3px solid rgba(255, 138, 115, 0.3);
    outline-offset: 2px;
}

/* Enhanced Login Form Wrapper */
.login-form-wrapper {
    margin: 100px 0;
    background-color: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 50px;
    border-radius: 12px;
}

.login-form-wrapper h2 {
    font-size: 28px;
    text-align: center;
    font-weight: 700;
    margin-bottom: 35px;
    color: var(--heading-color, #353539);
}

/* Links Styling */
.rmber-area a {
    color: var(--main-color-one, #ff8a73);
    font-weight: 600;
    transition: color 0.3s ease;
    text-decoration: none;
}

.rmber-area a:hover {
    color: var(--main-color-two, #5580ff);
    text-decoration: underline;
}

/* Custom Checkbox Enhanced */
.custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--main-color-one, #ff8a73);
    border-color: var(--main-color-one, #ff8a73);
}

.custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 3px rgba(255, 138, 115, 0.2);
}

/* Error Messages */
.error-wrap {
    margin-bottom: 20px;
}

.alert {
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 14px;
}

.alert-danger {
    background-color: #fff5f5;
    border: 1px solid #feb2b2;
    color: #c53030;
}

/* Accessibility - Focus States */
.form-control:focus,
.custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 3px rgba(255, 138, 115, 0.2);
}

/* Mobile Responsive */
@media only screen and (max-width: 767px) {
    .login-form-wrapper {
        margin: 50px 0;
        padding: 30px 20px;
    }
    
    .login-form-wrapper h2 {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .social-login-wrap.social-login-top a {
        font-size: 15px;
        padding: 12px 16px;
    }
    
    .social-login-wrap.social-login-top a i {
        margin-right: 8px;
        font-size: 16px;
    }
    
    .auth-divider {
        margin: 25px 0;
    }
    
    .auth-divider span {
        font-size: 13px;
    }
    
    .rmber-area {
        font-size: 14px;
    }
    
    .rmber-area .col-6:last-child {
        text-align: left !important;
        margin-top: 10px;
    }
    
    .rmber-area .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .login-form-wrapper {
        padding: 40px 35px;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .form-control,
    .social-login-wrap a {
        border-width: 2px;
    }
    
    .auth-divider::before {
        height: 2px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .form-control,
    .submit-btn,
    .social-login-wrap a,
    .password-toggle,
    .rmber-area a {
        transition: none;
    }
    
    .social-login-wrap .facebook:hover,
    .social-login-wrap .google:hover,
    .submit-btn:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .social-login-wrap,
    .password-toggle,
    .submit-btn {
        display: none;
    }
}
