/* Auth Modals Styles */

/* Backdrop Styles */
.modal-backdrop {
    opacity: 0.9 !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.5) !important;
}

/* RTL Modal Styles */
.modal-dialog-rtl {
    direction: rtl;
    text-align: right;
    transition: transform 0.3s ease-out;
}

/* Login Modal Styles */
#loginModal .modal-header .modal-title {
    color: #6c757d;
}
#loginModal .modal-body {
    background-color: white;
}

#loginModal .modal-content {
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#loginModal.show .modal-content {
    transform: translateY(0) scale(1.02);
    opacity: 1;
}

#loginModal .modal-header {
    background: white;
    padding: 1rem 2rem;
    border-bottom: none;
    background-size: 200% auto;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Social Buttons */
#loginModal .btn-outline-light {
    border: 1px solid #e0e0e0;
    color: #555;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

#loginModal .btn-outline-light i {
    margin-left: 0.5rem;
    font-size: 1rem;
    transition: transform 0.2s ease;
}

#loginModal .btn-outline-light:hover i {
    transform: translateX(2px);
}

#loginModal .btn-outline-light:hover {
    background: #f8f9fa;
    border-color: #d0d0d0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Social button specific styles */
#loginModal .btn-google {
    background: #fff;
    color: #757575;
    border-color: #e0e0e0;
}

#loginModal .btn-google:hover {
    color: #db4437;
    border-color: #db4437;
    background: #fff;
}

#loginModal .btn-facebook {
    background: #fff;
    color: #3b5998;
    border-color: #e0e0e0;
}

#loginModal .btn-facebook:hover {
    background: #fff;
    color: #3b5998;
    border-color: #3b5998;
}

/* Input Icons */
#loginModal .input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-right: none;
    color: #6c757d;
    padding: 0 1rem;
    border-radius: 50px 0 0 50px !important;
}

#loginModal .form-control {
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
}

#loginModal .input-group > .form-control:not(:first-child) {
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding-right: 1.25rem;
    padding-left: 0.75rem;
    height: calc(1.5em + 1rem + 2px);
}

#loginModal .form-control:focus + .input-group-text {
    color: #4a2561;
    border-color: #4a2561;
}

#loginModal .form-control:focus {
    border-color: #4a2561;
    box-shadow: 0 0 0 0.2rem rgba(74, 37, 97, 0.15);
}

#loginModal .form-control:focus {
    box-shadow: 0 0 0 3px rgba(74, 37, 97, 0.15);
    border-color: #4a2561;
}

/* Button Styles */
#loginModal .btn-primary {
    background: linear-gradient(135deg, #4a2561 0%, #341444 100%);
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
}

#loginModal .form-check-input:checked {
    background-color: #4a2561;
    border-color: #341444;
}

#loginModal .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(74, 37, 97, 0.25);
    border-color: #4a2561;
}

/* Animation */
@keyframes fadeInBackdrop {
    from { opacity: 0; }
    to { opacity: 0.9; }
}

.modal-backdrop.show {
    animation: fadeInBackdrop 0.3s ease-out;
}

/* Focus states */
#loginModal .form-control:focus {
    border-color: #4a2561;
    box-shadow: 0 0 0 3px rgba(74, 37, 97, 0.15);
}

/* Better focus visibility for accessibility */
#loginModal :focus-visible {
    outline: 3px solid #4a2561;
    outline-offset: 2px;
}
