
/* =========================
   LOGIN MODAL
========================= */

.login-modal {
    border: none;
    border-radius: 28px;
    overflow: hidden;
    max-width: 560px;
    margin: auto;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .18);
}

.login-modal .modal-body {
    padding: 32px;
    position: relative;
    background:
        radial-gradient(circle at top right, rgba(20, 184, 166, .08), transparent 35%),
        #fff;
}

/* CLOSE */

.login-close {
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 5;
    box-shadow: none !important;
}

/* HEADER */

.login-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    border-radius: 24px;
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 15px 30px rgba(20, 184, 166, .25);
}

.login-modal-header h3 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 10px;
}

.login-modal-header p {
    color: #64748b;
    line-height: 1.7;
    font-size: 15px;
    max-width: 460px;
    margin: 0 auto;
}

/* TABS */

.login-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 999px;
    margin-bottom: 24px;
}

.login-tab {
    flex: 1;
    border: none;
    padding: 12px;
    border-radius: 999px;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    font-weight: 900;
    transition: .3s ease;
}

.login-tab.active {
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    color: #fff;
    box-shadow: 0 10px 24px rgba(20, 184, 166, .20);
}

.login-form {
    display: none;
}

.login-form.active {
    display: block;
}

/* PORTAL LABEL */

.portal-label {
    text-align: center;
    margin-bottom: 18px;
}

.portal-label span {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #0f766e;
    font-size: 12px;
    font-weight: 900;
}

.portal-label.admin span {
    background: #fff7ed;
    color: #c2410c;
}

/* FIELDS */

.login-field {
    margin-bottom: 18px;
}

.login-field label {
    display: block;
    margin-bottom: 8px;
    color: #111827;
    font-weight: 900;
}

.login-input {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #d8e2e8;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    background: #fff;
    transition: .3s ease;
}

.login-input i:first-child {
    width: 60px;
    min-width: 60px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7fafc;
    color: #14b8a6;
    font-size: 18px;
}

.login-input input {
    width: 100%;
    border: none !important;
    outline: none !important;
    background: #fff !important;
    padding: 16px !important;
    color: #0f172a;
}

.login-input input::placeholder {
    color: #94a3b8;
}

.login-input:focus-within {
    border-color: #14b8a6;
    background: white;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, .08);
}

.toggle-password {
    cursor: pointer;
    color: #14b8a6;
    padding-right: 18px;
    font-size: 18px;
}

/* OPTIONS */

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0 24px;
    gap: 14px;
}

.login-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}

.login-options input {
    width: 18px;
    height: 18px;
}

.login-options a {
    color: #0f766e;
    font-weight: 900;
    text-decoration: none;
}

/* ADMIN SECURITY */

.admin-security-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff7ed;
    color: #9a3412;
    padding: 13px 15px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.6;
    margin: 0 0 18px;
}

.admin-security-note i {
    margin-top: 3px;
    color: #ea580c;
}

/* OTP */

.otp-row {
    display: grid;
    grid-template-columns: 1fr 130px;
    gap: 12px;
    align-items: end;
}

.otp-field {
    margin-bottom: 0;
}

.send-otp-btn {
    height: 58px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    font-size: 13px;
    font-weight: 900;
    transition: .3s ease;
    white-space: nowrap;
}

.send-otp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(249, 115, 22, .22);
}

.send-otp-btn:disabled {
    opacity: .75;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.otp-timer,
.otp-status {
    display: none;
    margin-top: 10px;
    margin-bottom: 18px;
    color: #0f766e;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.6;
}

.otp-timer.show,
.otp-status.show {
    display: block;
}

.otp-status.error {
    color: #dc2626;
}

.admin-options {
    justify-content: flex-end;
    margin-top: 18px;
}

.admin-login-btn {
    background: linear-gradient(135deg, #0f766e, #0b3b3a) !important;
}

/* BUTTON */

.login-submit-btn {
    width: 100%;
    border: none;
    padding: 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #14b8a6, #0f766e);
    color: white;
    font-size: 16px;
    font-weight: 900;
    transition: .3s ease;
}

.login-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(20, 184, 166, .25);
}

.login-register-link {
    text-align: center;
    margin-top: 22px;
}

.login-register-link p {
    color: #64748b;
    margin-bottom: 0;
    font-weight: 700;
}

.login-register-link a {
    color: #0f766e;
    font-weight: 900;
    text-decoration: none;
}
/* LOGIN ALERTS */
.login-message-box {
    margin: 18px 0;
}

.login-alert {
    padding: 13px 16px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
}

.login-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.login-alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* MOBILE */

@media (max-width: 576px) {
    .login-modal {
        width: 95%;
        margin: auto;
        border-radius: 24px;
    }

    .login-modal .modal-body {
        padding: 24px;
    }

    .login-icon {
        width: 66px;
        height: 66px;
        font-size: 26px;
    }

    .login-modal-header h3 {
        font-size: 26px;
    }

    .login-modal-header p {
        font-size: 14px;
    }

    .login-tabs {
        margin-bottom: 20px;
    }

    .login-tab {
        padding: 10px;
        font-size: 13px;
    }

    .login-options {
        flex-direction: column;
        align-items: flex-start;
    }

    .login-input i:first-child {
        width: 52px;
        min-width: 52px;
    }

    .otp-row {
        grid-template-columns: 1fr;
    }

    .send-otp-btn {
        width: 100%;
        height: 52px;
    }
}

/* =========================
   FORGOT PASSWORD MODAL
========================= */

.forgot-modal {
    border: none;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(15,23,42,.18);
}

.forgot-modal .modal-body {
    padding: 34px;
    position: relative;
    background:
        radial-gradient(circle at top right, rgba(20,184,166,.10), transparent 35%),
        #fff;
}

.forgot-close {
    position: absolute;
    top: 20px;
    right: 20px;
    box-shadow: none !important;
}

.forgot-header {
    text-align: center;
    margin-bottom: 28px;
}

.forgot-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 18px;
    border-radius: 24px;
    background: linear-gradient(135deg,#14b8a6,#0f766e);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 15px 30px rgba(20,184,166,.22);
}

.forgot-header h3 {
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 10px;
}

.forgot-header p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 0;
}

.forgot-step {
    display: none;
}

.forgot-step.active {
    display: block;
}

.forgot-submit-btn {
    width: 100%;
    border: none;
    padding: 14px;
    border-radius: 999px;
    background: linear-gradient(135deg,#14b8a6,#0f766e);
    color: white;
    font-size: 16px;
    font-weight: 900;
    transition: .3s;
}

.forgot-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(20,184,166,.25);
}

.forgot-submit-btn i {
    margin-left: 8px;
}

.otp-message {
    display: flex;
    gap: 10px;
    background: #ecfdf5;
    color: #0f766e;
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 800;
    margin-bottom: 18px;
}

.forgot-timer {
    color: #0f766e;
    font-size: 13px;
    font-weight: 800;
    margin: 0 0 20px;
}

.forgot-timer a {
    color: #0f766e;
    font-weight: 900;
    text-decoration: none;
}

.back-login-link {
    text-align: center;
    margin-top: 22px;
}

.back-login-link a {
    color: #0f766e;
    font-weight: 900;
    text-decoration: none;
}

@media(max-width:576px) {
    .forgot-modal .modal-body {
        padding: 26px;
    }

    .forgot-header h3 {
        font-size: 26px;
    }
}
/* =========================
   ADMIN FORGOT PASSWORD
========================= */

.admin-forgot-modal {
    border: none;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(15,23,42,.20);
}

.admin-forgot-modal .modal-body {
    padding: 34px;
    position: relative;
    background:
        radial-gradient(circle at top right, rgba(249,115,22,.12), transparent 35%),
        #fff;
}

.admin-forgot-close {
    position: absolute;
    top: 20px;
    right: 20px;
    box-shadow: none !important;
}

.admin-forgot-header {
    text-align: center;
    margin-bottom: 28px;
}

.admin-forgot-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 18px;
    border-radius: 24px;
    background: linear-gradient(135deg,#f97316,#c2410c);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 15px 30px rgba(249,115,22,.24);
}

.admin-forgot-header h3 {
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 10px;
}

.admin-forgot-header p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 0;
}

.admin-forgot-step {
    display: none;
}

.admin-forgot-step.active {
    display: block;
}

.admin-reset-warning,
.admin-otp-message {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.6;
}

.admin-reset-warning {
    background: #fff7ed;
    color: #9a3412;
}

.admin-otp-message {
    background: #ecfdf5;
    color: #0f766e;
}

.admin-forgot-btn {
    width: 100%;
    border: none;
    padding: 14px;
    border-radius: 999px;
    background: linear-gradient(135deg,#f97316,#c2410c);
    color: white;
    font-size: 16px;
    font-weight: 900;
    transition: .3s;
}

.admin-forgot-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(249,115,22,.25);
}

.admin-forgot-btn i {
    margin-left: 8px;
}

.admin-forgot-timer {
    color: #c2410c;
    font-size: 13px;
    font-weight: 800;
    margin: 0 0 20px;
}

.admin-forgot-timer a {
    color: #c2410c;
    font-weight: 900;
    text-decoration: none;
}

.admin-back-login {
    text-align: center;
    margin-top: 22px;
}

.admin-back-login a {
    color: #c2410c;
    font-weight: 900;
    text-decoration: none;
}

@media(max-width:576px) {
    .admin-forgot-modal .modal-body {
        padding: 26px;
    }

    .admin-forgot-header h3 {
        font-size: 26px;
    }
}
/* =========================
   FINAL MOBILE RESPONSIVE FIX
========================= */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
}

* {
    box-sizing: border-box;
}

img,
video {
    max-width: 100%;
    height: auto;
}

