/* ============================================
   Modern Auth Modal Styles
   GOR Maulana Booking System
   ============================================ */

/* Modal Overlay */
.auth-modal .modal-dialog {
    max-width: 450px;
    margin: 30px auto;
}

/* Modal Content */
.auth-modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* Close Button */
.auth-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.7;
    font-size: 18px;
    color: #666;
}

.auth-modal-close:hover {
    opacity: 1;
    background: #fff;
    transform: rotate(90deg);
    color: #333;
}

/* Modal Body */
.auth-modal-body {
    padding: 40px 35px 35px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Brand Section */
.auth-brand {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
    animation: fadeInDown 0.6s ease;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: #2e1e13;
    margin-bottom: 8px;
    animation: fadeInDown 0.6s ease 0.1s backwards;
}

.auth-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
    animation: fadeInDown 0.6s ease 0.2s backwards;
}

/* Tabs Navigation */
.auth-tabs {
    border: none;
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    background: #fff;
    padding: 5px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.auth-tabs li {
    flex: 1;
    margin: 0;
}

.auth-tabs li a {
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #666;
    background: transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-tabs li a i {
    font-size: 16px;
}

.auth-tabs li a:hover {
    background: #f8f9fa;
    color: #efbb20;
}

.auth-tabs li.active a {
    background: linear-gradient(135deg, #efbb20 0%, #d4a01c 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(239, 187, 32, 0.3);
}

/* Tab Content */
.auth-tab-content {
    animation: fadeIn 0.4s ease;
}

/* Form Styles */
.auth-form {
    animation: fadeInUp 0.5s ease;
}

.auth-form-group {
    margin-bottom: 20px;
}

.auth-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-label i {
    color: #efbb20;
    font-size: 14px;
}

.auth-required {
    color: #dc3545;
    font-size: 11px;
    font-weight: 500;
}

/* Input Fields */
.auth-input {
    height: 48px;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.auth-input:focus {
    border-color: #efbb20;
    box-shadow: 0 0 0 3px rgba(239, 187, 32, 0.1);
    outline: none;
}

.auth-input::placeholder {
    color: #999;
    font-size: 13px;
}

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

.auth-password-wrapper .auth-input {
    padding-right: 45px;
}

.auth-password-toggle {
    position: absolute;
    right: 0;
    top: 0;
    height: 48px;
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    transition: all 0.3s ease;
    border-radius: 0 10px 10px 0;
}

.auth-password-toggle:hover {
    color: #efbb20;
    background: rgba(239, 187, 32, 0.05);
}

.auth-password-toggle i {
    font-size: 16px;
}

/* Wrapper */
.password-rules-wrapper {
    background: #f8f9fa;
    border: 1px solid #e4e6ef;
    border-radius: 10px;
    padding: 12px 14px;
}

/* Title */
.password-rules-title {
    font-size: 13px;
    font-weight: 600;
    color: #3f4254;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.password-rules-title i {
    color: #3699ff;
}

/* List */
.auth-password-rules {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-password-rules li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    padding: 4px 0;
    color: #7e8299;
    transition: all 0.2s ease;
}

/* Icons */
.auth-password-rules li i {
    width: 16px;
    text-align: center;
}

/* Valid state */
.auth-password-rules li.valid {
    color: #198754;
}

.auth-password-rules li.valid i {
    color: #198754;
}

/* Invalid state */
.auth-password-rules li.invalid {
    color: #dc3545;
}

.auth-password-rules li.invalid i {
    color: #dc3545;
}

/* Help Text */
.auth-help-text {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 500;
}

/* Forgot Password Link */
.auth-forgot-link {
    text-align: right;
    margin-bottom: 20px;
}

.auth-forgot-link a {
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.auth-forgot-link a:hover {
    color: #efbb20;
}

.auth-forgot-link a i {
    font-size: 12px;
}

/* Submit Button */
.auth-submit-btn {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #efbb20 0%, #d4a01c 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(239, 187, 32, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 187, 32, 0.4);
    background: linear-gradient(135deg, #d4a01c 0%, #efbb20 100%);
}

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

.auth-submit-btn i {
    font-size: 16px;
}

/* Footer */
.auth-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    text-align: center;
}

.auth-footer-text {
    font-size: 12px;
    color: #999;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.auth-footer-text i {
    color: #28a745;
    font-size: 14px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 576px) {
    .auth-modal .modal-dialog {
        margin: 10px;
    }

    .auth-modal-body {
        padding: 30px 25px 25px;
    }

    .auth-logo {
        width: 60px;
        height: 60px;
    }

    .auth-title {
        font-size: 20px;
    }

    .auth-subtitle {
        font-size: 13px;
    }

    .auth-tabs li a {
        padding: 10px 15px;
        font-size: 13px;
    }

    .auth-input {
        height: 44px;
        font-size: 13px;
    }

    .auth-password-toggle {
        height: 44px;
    }

    .auth-submit-btn {
        height: 46px;
        font-size: 14px;
    }
}

/* Loading State */
.auth-submit-btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Validation States */
.auth-input.is-invalid {
    border-color: #dc3545;
}

.auth-input.is-valid {
    border-color: #28a745;
}

/* Text Colors for Validation */
.text-danger {
    color: #dc3545 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-success {
    color: #28a745 !important;
}
