        /* =========================
   LOGIN MODAL
========================== */

body {
    outline: 5px solid red !important;
}

.login-trigger {
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

.login-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;
}

.login-modal.active {
    display: flex;
}

.login-modal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(17, 24, 39, 0.55);

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.login-modal-card {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 420px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 22px;

    padding: 34px;

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.18);

    animation:
        loginModalIn 0.22s ease-out;
}

@keyframes loginModalIn {

    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}

.login-modal-close {
    position: absolute;

    top: 14px;
    right: 16px;

    width: 34px;
    height: 34px;

    border: none;
    border-radius: 50%;

    background: #f3f4f6;

    color: #4b5563;

    font-size: 24px;
    line-height: 1;

    cursor: pointer;

    transition: 0.2s ease;
}

.login-modal-close:hover {
    background: #e5e7eb;
    color: #111827;
}

.login-modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-modal-icon {
    width: 54px;
    height: 54px;

    margin: 0 auto 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: #f3f4f6;

    font-size: 25px;
}

.login-modal-header h2 {
    font-size: 25px;
    color: #111827;
    margin-bottom: 7px;
}

.login-modal-header p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.login-modal-card label {
    display: block;

    margin-bottom: 8px;

    font-size: 13px;
    font-weight: 700;

    color: #374151;
}

.phone-input-wrapper {
    display: flex;

    height: 50px;

    border: 1px solid #d1d5db;
    border-radius: 11px;

    background: #ffffff;

    overflow: hidden;

    transition: 0.2s ease;
}

.phone-input-wrapper:focus-within {
    border-color: #111827;

    box-shadow:
        0 0 0 3px rgba(17, 24, 39, 0.08);
}

.country-code {
    display: flex;
    align-items: center;

    padding: 0 13px;

    background: #f9fafb;

    border-right: 1px solid #e5e7eb;

    color: #374151;

    font-size: 14px;
    font-weight: 600;
}

.phone-input-wrapper input {
    flex: 1;

    min-width: 0;

    border: none;
    outline: none;

    padding: 0 14px;

    font-size: 15px;
}

.login-primary-button {
    width: 100%;

    height: 50px;

    margin-top: 18px;

    border: none;
    border-radius: 11px;

    background: #111827;
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.2s ease;
}

.login-primary-button:hover {
    background: #000000;
}

.login-primary-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-otp-heading {
    margin-bottom: 18px;
}

.login-otp-heading p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 6px;
}

.login-link-button {
    border: none;
    background: transparent;

    padding: 0;

    color: #111827;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}

.login-link-button:hover {
    text-decoration: underline;
}

.login-otp-input {
    width: 100%;

    height: 54px;

    border: 1px solid #d1d5db;
    border-radius: 11px;

    outline: none;

    text-align: center;

    letter-spacing: 8px;

    font-size: 22px;
    font-weight: 700;

    color: #111827;

    transition: 0.2s ease;
}

.login-otp-input:focus {
    border-color: #111827;

    box-shadow:
        0 0 0 3px rgba(17, 24, 39, 0.08);
}

.login-resend-text {
    margin-top: 18px;

    text-align: center;

    color: #6b7280;

    font-size: 13px;
}

.login-message {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    text-align: center;
}

.login-modal-footer {
    margin-top: 25px;
    padding-top: 17px;

    border-top: 1px solid #f0f0f0;

    text-align: center;

    color: #9ca3af;

    font-size: 11px;
}

@media (max-width: 550px) {

    .login-modal {
        padding: 14px;
    }

    .login-modal-card {
        padding: 29px 22px;

        border-radius: 18px;
    }

}