/* ============================================================
   FORGOT PASSWORD CSS — TC-107 FIX (Proper UI Scaling)
   Font sizes, input heights, buttons and layout tightened
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background: #0a1929;
    overflow-x: hidden;
}

/* =========================
   MOBILE FIRST
   ========================= */

.auth-container {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
}

.left-section {
    position: relative;
    min-height: 0;
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-24px);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
    background:
        linear-gradient(135deg, rgba(26, 39, 68, 0.78) 0%, rgba(15, 25, 34, 0.88) 100%),
        url('images/loginbg.png') center/cover no-repeat;
    overflow: hidden;
}

.right-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 14px;
    background:
        linear-gradient(135deg, rgba(26, 39, 68, 0.78) 0%, rgba(15, 25, 34, 0.88) 100%),
        url('images/f-5.jpg') center/cover no-repeat;
}

.right-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.form-wrapper {
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 2;
}

/* ── Left side visuals ── */
.left-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, rgba(0,229,255,0.03) 0px, transparent 1px, transparent 50px, rgba(0,229,255,0.03) 51px),
        repeating-linear-gradient(90deg, rgba(0,229,255,0.03) 0px, transparent 1px, transparent 50px, rgba(0,229,255,0.03) 51px);
    opacity: 0.3;
}

.left-section::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(0,229,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -80px;
    left: -80px;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50%       { transform: translate(40px, -40px); }
}

.illustration-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 460px;
    width: 100%;
}

.illustration-box {
    background: rgba(0,229,255,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 32px 24px;
    border: 2px solid rgba(0,229,255,0.2);
    box-shadow: 0 16px 48px rgba(0,0,0,0.28), 0 0 24px rgba(0,229,255,0.08);
}

.illustration-icon {
    width: 72px;
    height: 72px;
    background: rgba(0,229,255,0.15);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 32px;
    color: #00e5ff;
    border: 2px solid rgba(0,229,255,0.3);
    box-shadow: 0 8px 28px rgba(0,229,255,0.18);
}

.illustration-content h1 {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.25;
    text-shadow: 0 2px 16px rgba(0,229,255,0.25);
}

.illustration-content p {
    font-size: 13px;
    color: rgba(255,255,255,0.78);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ── Form Header ── */
.form-header {
    margin-bottom: 16px;
    text-align: center;
}

/* TC-107 FIX — h2 was 26-34px, now capped at 20px */
.form-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.25;
}

.form-header p {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    line-height: 1.55;
}

/* ── Step Indicator ── */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
}

.step {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.step.active {
    width: 32px;
    border-radius: 8px;
    background: linear-gradient(90deg, #00e5ff, #00b8d4);
    box-shadow: 0 3px 12px rgba(0,229,255,0.45);
}

.step.completed {
    background: #00e5ff;
    box-shadow: 0 0 8px rgba(0,229,255,0.45);
}

/* ── Form Group ── */
.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.88);
    margin-bottom: 6px;
}

.input-group {
    position: relative;
}

/* TC-107 FIX — input was min-height:52px + font-size:15px
                now height:42px + font-size:13px */
.form-input {
    width: 100%;
    height: 42px;
    background: rgba(255,255,255,0.05);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 10px !important;
    padding: 0 44px 0 14px;
    font-size: 13px;
    color: #ffffff;
    transition: all 0.3s ease;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.form-input::placeholder {
    color: rgba(255,255,255,0.28);
    font-size: 12px;
}

.form-input:focus {
    outline: none;
    background: rgba(0,229,255,0.05);
    border-color: #00e5ff;
    box-shadow: 0 0 0 3px rgba(0,229,255,0.12);
}

.form-input.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.15rem rgba(220,53,69,0.22);
}

.invalid-feedback {
    display: none;
    color: #ff6b6b;
    font-size: 11px;
    margin-top: 4px;
    font-weight: 500;
}

.invalid-feedback.show {
    display: block;
}

.input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.35);
    font-size: 16px;
    pointer-events: none;
    transition: color 0.3s ease;
}

.form-input:focus ~ .input-icon {
    color: #00e5ff;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.35);
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 5;
}

.toggle-password:hover {
    color: #00e5ff;
}

/* ── OTP Boxes ──
   TC-107 FIX — was 52x60px font 24px → now 44x50px font 18px */
.otp-group {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 16px 0;
    flex-wrap: wrap;
}

.otp-box {
    width: 44px;
    height: 50px;
    background: rgba(255,255,255,0.05);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.otp-box:focus {
    outline: none;
    background: rgba(0,229,255,0.08);
    border-color: #00e5ff;
    box-shadow: 0 0 0 3px rgba(0,229,255,0.18);
    transform: translateY(-2px);
}

/* ── Buttons ──
   TC-107 FIX — all buttons were min-height:52px, font-size:15px
                now height:42px, font-size:13px */
.btn-primary,
.btn-secondary,
.btn-back,
.btn-clear {
    height: 42px;
    min-height: unset;
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #0099ff 0%, #00e5ff 100%);
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0,229,255,0.35);
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before { left: 100%; }

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,229,255,0.45);
}

.btn-secondary {
    width: 100%;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.18);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.82);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    font-family: 'Inter', sans-serif;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    border-color: #00e5ff;
    color: #00e5ff;
}

.button-group-half {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.btn-back,
.btn-clear {
    width: 100%;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    padding: 0 14px;
    font-family: 'Inter', sans-serif;
}

.btn-back {
    background: linear-gradient(135deg, rgba(0,229,255,0.12) 0%, rgba(0,184,212,0.12) 100%);
    border: 1.5px solid #00e5ff;
    color: #00e5ff;
    box-shadow: 0 3px 12px rgba(0,229,255,0.22);
}

.btn-back:hover {
    background: linear-gradient(135deg, rgba(0,229,255,0.22) 0%, rgba(0,184,212,0.22) 100%);
    border-color: #00e5ff;
    color: #00e5ff;
    box-shadow: 0 5px 16px rgba(0,229,255,0.4);
    transform: translateY(-2px);
}

.btn-clear {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.78);
}

.btn-clear:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.28);
    color: #ffffff;
}

/* ── Links ── */
.link-text {
    color: #00e5ff;
    font-weight: 600;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.link-text:hover {
    color: #00b8d4;
    text-shadow: 0 0 8px rgba(0,229,255,0.45);
}

.text-center {
    text-align: center;
    margin-top: 14px;
}

.text-muted {
    color: rgba(255,255,255,0.48);
    font-size: 12px;
}

/* ── Step Icon ──
   TC-107 FIX — was 74-90px range, now fixed 56px */
.step-icon {
    width: 56px;
    height: 56px;
    background: rgba(0,229,255,0.1);
    border: 2px solid rgba(0,229,255,0.28);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 28px;
    color: #00e5ff;
    animation: scaleIn 0.45s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 6px 22px rgba(0,229,255,0.18);
}

.step-icon img {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

@keyframes scaleIn {
    from { transform: scale(0) rotate(-180deg); opacity: 0; }
    to   { transform: scale(1) rotate(0deg);    opacity: 1; }
}

.step-content {
    animation: fadeSlide 0.4s ease;
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Copyright ── */
.copyright {
    text-align: center;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.38);
    font-size: 11px;
}

/* =========================
   TABLET 768px+
   ========================= */

@media (min-width: 768px) {
    .right-section {
        padding: 24px 20px;
    }

    .form-wrapper {
        max-width: 580px;
    }

    .form-header h2 {
        font-size: 22px;
    }

    .step-icon {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }

    .step-icon img {
        max-width: 44px;
        max-height: 44px;
    }

    .button-group-half {
        flex-direction: row;
        gap: 10px;
    }

    .otp-box {
        width: 48px;
        height: 54px;
        font-size: 20px;
    }
}

/* =========================
   BELOW DESKTOP: hide left
   ========================= */

@media (max-width: 991.98px) {
    .left-section {
        display: none !important;
    }

    .right-section {
        width: 100%;
        min-height: 100vh;
    }
}

/* =========================
   DESKTOP 992px+
   ========================= */

@media (min-width: 992px) {
    .auth-container {
        grid-template-columns: 1fr 1fr;
    }

    .left-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 40px;
        min-height: 100vh;
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .right-section {
        padding: 28px 24px;
    }

    .form-wrapper {
        max-width: 400px;
    }

    .step-icon {
        width: 62px;
        height: 62px;
        border-radius: 16px;
    }

    .step-icon img {
        max-width: 46px;
        max-height: 46px;
    }

    .illustration-box {
        padding: 38px 28px;
    }

    .illustration-icon {
        width: 80px;
        height: 80px;
        font-size: 36px;
        border-radius: 20px;
    }

    .illustration-content h1 {
        font-size: 26px;
    }

    .illustration-content p {
        font-size: 14px;
    }

    .otp-box {
        width: 50px;
        height: 56px;
        font-size: 20px;
    }
}

/* =========================
   LARGE 1200px+
   ========================= */

@media (min-width: 1200px) {
    .left-section {
        padding: 48px;
    }

    .right-section {
        padding: 32px 28px;
    }

    .form-wrapper {
        max-width: 420px;
    }
}

/* =========================
   XL 1400px+
   ========================= */

@media (min-width: 1400px) {
    .form-wrapper {
        max-width: 440px;
    }

    .illustration-content {
        max-width: 500px;
    }

    .illustration-box {
        padding: 44px 32px;
    }

    .form-header h2 {
        font-size: 24px;
    }
}

/* =========================
   1920px+
   ========================= */

@media (min-width: 1920px) {
    .form-wrapper {
        max-width: 460px;
    }

    .illustration-content {
        max-width: 560px;
    }

    .illustration-content h1 {
        font-size: 32px;
    }

    .illustration-content p {
        font-size: 15px;
    }

    .illustration-box {
        padding: 48px 36px;
    }
}
/* ============================================================
   MODAL STYLING — BG-109 Standard Glass Modal
   ============================================================ */

/* Backdrop blur */
.modal-backdrop {
    background: rgba(10, 14, 26, 0.75) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}
.modal-backdrop.show { opacity: 1 !important; }

/* Glass modal content */
.glass-modal-content {
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 8px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Sizing — matches standard app deactivateModal2 */
#deactivateModal2 .modal-dialog {
    max-width: 340px !important;
    width: 340px !important;
    margin: auto !important;
}
#deactivateModal2 .glass-modal-content {
    max-width: 340px !important;
    width: 100% !important;
}

/* Header (icon area) */
.glass-modal-header-center {
    flex-shrink: 0;
    padding: 1.2rem 1rem 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Warning icon circle */
.modal-icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(239, 68, 68, 0.15);
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-bottom: 0;
}
.modal-icon-wrapper i {
    font-size: 1.4rem;
    color: #ef4444;
    display: block;
    line-height: 1;
}

/* Body */
.glass-modal-body {
    flex: 1 1 auto;
    padding: 0.5rem 1.2rem 0.8rem !important;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Message text */
.modal-message-text {
    font-size: 13px !important;
    color: #cbd5e1;
    text-align: center;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

/* Footer */
.glass-modal-footer {
    flex-shrink: 0;
    border-top: 1px solid rgba(71, 85, 105, 0.3);
    padding: 0.6rem 1rem !important;
    display: flex;
    justify-content: center;
    gap: 0.6rem;
}

/* Standard premium buttons */
.btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.12s ease;
    min-width: 90px;
    padding: 0.35rem 0.8rem;
}
.btn-premium-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
}
.btn-premium-primary:hover {
    box-shadow: 0 3px 12px rgba(59, 130, 246, 0.45);
    transform: translateY(-1px);
    color: #ffffff;
}
.btn-premium-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(71, 85, 105, 0.3);
    color: #94a3b8;
}
.btn-premium-secondary:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.35);
    color: #ef4444;
    transform: translateY(-1px);
}

/* Mobile */
@media (max-width: 768px) {
    #deactivateModal2 .modal-dialog {
        max-width: 300px !important;
        width: 300px !important;
    }
    #deactivateModal2 .glass-modal-content {
        max-width: 300px !important;
    }
}