/* ================================================
   MODERN LOGIN PAGE — Premium Tourism Portal
   ================================================ */

/* === Layout: Split Screen === */
.auth {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 76px) !important;
    padding: 0 !important;
    overflow: hidden;
    position: relative;
}

/* === Left: Visual Panel === */
.auth-visual {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.auth-visual-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px);
    transition: transform 12s ease;
    animation: auth-zoom 25s ease-in-out infinite alternate;
}

@keyframes auth-zoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.12);
    }
}

.auth-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(11, 63, 51, 0.25) 0%,
            rgba(11, 63, 51, 0.55) 50%,
            rgba(11, 63, 51, 0.88) 100%);
    z-index: 1;
}

.auth-visual-content {
    position: relative;
    z-index: 2;
    padding: 56px 48px;
    color: #fff;
}

.auth-visual-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    margin-bottom: 24px;
    animation: auth-fadeUp 0.8s ease both;
}

.auth-visual-badge i {
    font-size: 14px;
    color: #a8e063;
}

.auth-visual-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    animation: auth-fadeUp 0.8s 0.1s ease both;
}

.auth-visual-desc {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    max-width: 420px;
    margin-bottom: 32px;
    animation: auth-fadeUp 0.8s 0.2s ease both;
}

.auth-visual-features {
    display: flex;
    gap: 24px;
    animation: auth-fadeUp 0.8s 0.3s ease both;
}

.auth-visual-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.auth-visual-feature:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.auth-visual-feature i {
    font-size: 16px;
    color: #a8e063;
}

/* === Right: Form Panel === */
.auth-form-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f8faf6 0%, #f0f4ed 50%, #e8efe3 100%);
    padding: 40px;
    position: relative;
    /* overflow-y: auto; */
}

.auth-form-wrapper::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(83, 123, 47, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.auth-form-wrapper::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(11, 63, 51, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.auth-form-card {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

.auth-form-card.register-card {
    max-width: 520px;
}

/* === Form Header === */
.auth-form-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #0b3f33 0%, #537b2f 100%);
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(11, 63, 51, 0.25);
    animation: auth-fadeDown 0.6s ease both;
}

.auth-logo-icon i {
    font-size: 24px;
    color: #fff;
}

.auth-form-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #0b3f33 !important;
    margin-bottom: 8px !important;
    border: none !important;
    padding: 0 !important;
    line-height: 1.3 !important;
}

.auth-form-subtitle {
    font-size: 14px;
    color: #6b7c6e;
    margin: 0;
    font-weight: 400;
}

/* === Form Inputs === */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.3s ease;
}

.auth-input-group.focused .auth-label {
    color: #0b3f33;
}

.auth-input-group.focused .auth-label i {
    color: #537b2f;
}

.auth-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #4a5a4d;
    transition: color 0.3s ease;
}

.auth-label i {
    font-size: 14px;
    color: #8a9a8d;
    transition: color 0.3s ease;
}

.auth-input {
    width: 100%;
    height: 40px !important;
    padding: 0 14px !important;
    border: 2px solid #dde5d9 !important;
    border-radius: 10px !important;
    background: #fff !important;
    font-size: 13px !important;
    font-weight: 400;
    color: #1a2e1c !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.auth-input::placeholder {
    color: #a3b0a5;
    font-weight: 400;
}

.auth-input:focus {
    border-color: #537b2f !important;
    box-shadow: 0 0 0 4px rgba(83, 123, 47, 0.1);
    background: #fff !important;
}

.auth-input:hover:not(:focus) {
    border-color: #b8c9b3 !important;
}

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

.auth-password-wrapper .auth-input {
    padding-right: 48px !important;
}

.auth-password-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #8a9a8d;
    border-radius: 8px;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0;
}

.auth-password-toggle:hover {
    color: #537b2f;
    background: rgba(83, 123, 47, 0.08);
}

/* === Remember & Forgot === */
.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #5a6a5d;
    font-weight: 500;
    position: relative;
    user-select: none;
}

.auth-remember input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.auth-checkbox-custom {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid #c4d0c1;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
    background: #fff;
}

.auth-remember input[type="checkbox"]:checked+.auth-checkbox-custom {
    background: linear-gradient(135deg, #0b3f33, #537b2f);
    border-color: #0b3f33;
}

.auth-remember input[type="checkbox"]:checked+.auth-checkbox-custom::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -1px;
}

.auth-forgot {
    font-size: 13px;
    font-weight: 600;
    color: #537b2f;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-forgot:hover {
    color: #0b3f33;
    text-decoration: underline;
}

/* === Submit Button === */
.auth-submit-btn {
    width: 100%;
    height: 42px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #0b3f33 0%, #1a5c4a 50%, #537b2f 100%) !important;
    background-size: 200% 100%;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(11, 63, 51, 0.3);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    margin-top: 4px;
}

.auth-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transition: left 0.6s ease;
}

.auth-submit-btn:hover {
    background-position: 100% 0;
    box-shadow: 0 8px 28px rgba(11, 63, 51, 0.4);
    transform: translateY(-2px);
}

.auth-submit-btn:hover::before {
    left: 100%;
}

.auth-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 12px rgba(11, 63, 51, 0.3);
}

.auth-submit-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.auth-submit-btn:hover i {
    transform: translateX(4px);
}

/* === Divider === */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c4d0c1, transparent);
}

.auth-divider span {
    font-size: 12px;
    font-weight: 600;
    color: #8a9a8d;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

/* === Social Login === */
.auth-social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.auth-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.auth-social-facebook {
    background: #1877f2;
    color: #fff;
}

.auth-social-facebook:hover {
    background: #1565c0;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.35);
}

.auth-social-google {
    background: #fff;
    color: #3c4043;
    border-color: #dde5d9;
}

.auth-social-google i {
    color: #ea4335;
}

.auth-social-google:hover {
    background: #fafafa;
    color: #3c4043;
    border-color: #ea4335;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 67, 53, 0.15);
}

/* === Terms === */
.auth-terms {
    font-size: 12px;
    text-align: center;
    color: #8a9a8d;
    margin: 20px 0 0;
    line-height: 1.6;
}

.auth-terms a {
    color: #537b2f;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-terms a:hover {
    color: #0b3f33;
    text-decoration: underline;
}

/* === Switch Auth === */
.auth-switch {
    text-align: center;
    font-size: 14px;
    color: #6b7c6e;
    margin-top: 12px;
    /* padding-top: 20px; */
    border-top: 1px solid #e8efe3;
}

.auth-switch a {
    color: #0b3f33;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.auth-switch a:hover {
    color: #537b2f;
    text-decoration: underline;
}

/* === Animations === */
@keyframes auth-fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes auth-fadeDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Modal Override === */
.auth-terms+.modal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.modal-body h5 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 500;
}

.modal-body p,
.modal-body ul {
    margin-bottom: 15px;
    font-size: 14px;
    color: #333;
}

.modal-body ul {
    padding-left: 20px;
}

.modal-body a {
    color: #537b2f;
    text-decoration: none;
}

.modal-body a:hover {
    text-decoration: underline;
}

/* ================================================
   REGISTER PAGE SPECIFIC
   ================================================ */

/* Required field marker */
.auth-required {
    color: #e53935;
    font-weight: 700;
}

/* reCAPTCHA wrapper */
.auth-recaptcha-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

/* Register form — 2-column grid */
#register-step-1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

#register-step-1 .auth-input-group:first-child,
#register-step-1 .auth-recaptcha-wrapper,
#register-step-1 .auth-submit-btn {
    grid-column: 1 / -1;
}

/* Step 2: Verification */
#register-step-2 {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-verify-info {
    text-align: center;
    padding: 20px;
    background: rgba(83, 123, 47, 0.06);
    border-radius: 12px;
    border: 1px solid rgba(83, 123, 47, 0.12);
}

.auth-verify-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0b3f33, #537b2f);
    border-radius: 50%;
    margin-bottom: 12px;
}

.auth-verify-icon i {
    font-size: 20px;
    color: #fff;
}

.auth-verify-info p {
    font-size: 14px;
    color: #3a3a3a;
    margin: 0 0 6px;
    line-height: 1.6;
}

.auth-verify-info strong {
    color: #0b3f33;
    font-weight: 700;
}

.auth-verify-hint {
    font-size: 12px !important;
    color: #8a9a8d !important;
}

/* Code input */
.auth-input-code {
    text-align: center;
    letter-spacing: 6px;
    font-size: 18px !important;
    font-weight: 700;
}

/* Step 2 action buttons */
.auth-step2-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.auth-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #537b2f;
    padding: 6px 4px;
    transition: all 0.2s ease;
}

.auth-link-btn:hover {
    color: #0b3f33;
    text-decoration: underline;
}

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

/* === Success Card (Reset Password Confirmation) === */
.auth-success-card {
    text-align: center;
    padding: 20px 0;
}

.auth-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(83, 123, 47, 0.1), rgba(11, 63, 51, 0.1));
    border-radius: 50%;
    margin-bottom: 24px;
    animation: auth-fadeDown 0.6s ease both;
}

.auth-success-icon i {
    font-size: 36px;
    color: #537b2f;
}

/* Email notice info box */
.auth-email-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    background: rgba(83, 123, 47, 0.06);
    border: 1px solid rgba(83, 123, 47, 0.15);
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 20px;
    font-size: 13px;
    line-height: 1.6;
    color: #4a5a4d;
}

.auth-email-notice i {
    color: #537b2f;
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.auth-email-notice strong {
    color: #0b3f33;
}

/* ================================================
   RESPONSIVE
   ================================================ */

/* === Tablet (991px) === */
@media screen and (max-width: 991px) {
    .auth {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto 1fr;
    }

    .auth-visual {
        min-height: 280px;
        max-height: 320px;
    }

    .auth-visual-title {
        font-size: 28px;
    }

    .auth-visual-desc {
        display: none;
    }

    .auth-visual-content {
        padding: 32px 32px;
    }

    .auth-form-wrapper {
        padding: 40px 24px;
    }

    .auth-form-card {
        max-width: 480px;
    }
}

/* === Phone (576px) === */
@media screen and (max-width: 576px) {
    .auth {
        /* min-height: calc(100vh - 56px) !important; */
        min-height: fit-content !important;
    }

    .auth-visual {
        min-height: 200px;
        max-height: 240px;
    }

    .auth-visual-content {
        padding: 24px 20px;
    }

    .auth-visual-badge {
        padding: 6px 14px;
        font-size: 11px;
        margin-bottom: 16px;
    }

    .auth-visual-title {
        font-size: 22px;
    }

    .auth-visual-features {
        gap: 8px;
        flex-wrap: wrap;
    }

    .auth-visual-feature {
        padding: 6px 10px;
        font-size: 11px;
        gap: 6px;
    }

    .auth-visual-feature i {
        font-size: 13px;
    }

    .auth-form-wrapper {
        padding: 28px 16px 40px;
    }

    .auth-form-title {
        font-size: 24px !important;
    }

    .auth-logo-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        margin-bottom: 16px;
    }

    .auth-logo-icon i {
        font-size: 20px;
    }

    .auth-form-header {
        margin-bottom: 28px;
    }

    .auth-input {
        height: 44px !important;
    }

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

    .auth-social-login {
        grid-template-columns: 1fr;
    }

    .auth-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .auth-forgot {
        align-self: flex-end;
        margin-top: -4px;
    }

    #register-step-1 {
        grid-template-columns: 1fr;
    }
}