﻿/* ===========================================================================
 * Login Modal (Bootstrap 5, RTL)
 * Used from Controls/General/LoginModal.ascx
 * =========================================================================== */
.login-modal .modal-dialog {
    max-width: 460px;
    margin-top: 24px;
    margin-bottom: 24px;
    /* Allow the modal to scroll inside on short viewports instead of overflowing. */
    max-height: calc(100vh - 48px);
}

    .login-modal .modal-dialog.modal-dialog-scrollable .modal-content {
        max-height: calc(100vh - 48px);
    }

.login-modal .modal-content {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18), 0 6px 18px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.login-modal .login-modal-close {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    color: #555;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    z-index: 2;
}

    .login-modal .login-modal-close:hover {
        background: rgba(0, 0, 0, 0.12);
        color: #000;
    }

.login-modal .login-modal-body {
    padding: 36px 32px 30px;
    overflow-y: auto;
}

/* View toggling: explicit display rules so we don't depend on the [hidden]
   attribute (which can be overridden by other stylesheets). */
.login-modal .login-modal-view {
    display: none;
}

    .login-modal .login-modal-view.is-active {
        display: block;
    }

.login-modal h2 {
    margin: 0 0 6px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0e2a47;
    text-align: center;
}

.login-modal .login-modal-sub {
    margin: 0 0 22px;
    text-align: center;
    color: #6b7280;
    font-size: 0.95rem;
}

.login-modal .login-modal-message {
    display: none;
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
}

    .login-modal .login-modal-message.is-error {
        background: #fef2f2;
        color: #b42318;
        border: 1px solid #fecaca;
    }

    .login-modal .login-modal-message.is-success {
        background: #ecfdf5;
        color: #027a48;
        border: 1px solid #a7f3d0;
    }

/* Plain label + input (we deliberately don't use form-floating because the
   site's global stylesheet overrides Bootstrap floating-label transforms). */
.login-modal .lm-field {
    margin-bottom: 14px;
    text-align: right;
}

.login-modal .lm-input-label {
    display: block;
    font-size: 0.92rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.login-modal .lm-input,
.login-modal .form-control {
    height: 46px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fafafa;
    padding: 0.55rem 0.85rem;
    font-size: 1rem;
    width: 100%;
    box-shadow: none;
}

    .login-modal .lm-input::placeholder,
    .login-modal .form-control::placeholder {
        color: #9ca3af;
    }

    .login-modal .lm-input:focus,
    .login-modal .form-control:focus {
        border-color: #1d4ed8;
        background: #fff;
        box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
        outline: 0;
    }

.login-modal .btn-accent {
    height: 48px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    border: 0;
    color: #fff;
    transition: transform 0.1s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
}

    .login-modal .btn-accent:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(29, 78, 216, 0.28);
        color: #fff;
    }

    .login-modal .btn-accent:disabled {
        opacity: 0.65;
        cursor: not-allowed;
    }

.login-modal .login-modal-forgot-link {
    margin-top: 8px;
    text-align: end;
    font-size: 0.85rem;
}

    .login-modal .login-modal-forgot-link a {
        color: #1d4ed8;
        text-decoration: none;
    }

        .login-modal .login-modal-forgot-link a:hover {
            text-decoration: underline;
        }

.login-modal .login-modal-divider {
    position: relative;
    text-align: center;
    margin: 22px 0 18px;
    color: #9ca3af;
    font-size: 0.85rem;
}

    .login-modal .login-modal-divider::before,
    .login-modal .login-modal-divider::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 42%;
        height: 1px;
        background: #e5e7eb;
    }

    .login-modal .login-modal-divider::before {
        right: 0;
    }

    .login-modal .login-modal-divider::after {
        left: 0;
    }

    .login-modal .login-modal-divider span {
        background: #fff;
        padding: 0 10px;
        position: relative;
        z-index: 1;
    }

.login-modal .login-modal-social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-modal .btn-social {
    height: 46px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #1f2937;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
    cursor: pointer;
    width: 100%;
}

    .login-modal .btn-social:hover {
        background: #f9fafb;
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
        transform: translateY(-1px);
    }

.login-modal .btn-facebook {
    border-color: #d6e4f5;
}

.login-modal .lm-social-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

.login-modal .login-modal-foot {
    margin-top: 22px;
    text-align: center;
    font-size: 0.92rem;
    color: #4b5563;
}

    .login-modal .login-modal-foot a {
        color: #1d4ed8;
        font-weight: 600;
        text-decoration: none;
        margin-right: 4px;
    }

        .login-modal .login-modal-foot a:hover {
            text-decoration: underline;
        }

@media (max-width: 575px) {
    .login-modal .modal-dialog {
        margin: 12px;
        max-height: calc(100vh - 24px);
    }

        .login-modal .modal-dialog.modal-dialog-scrollable .modal-content {
            max-height: calc(100vh - 24px);
        }

    .login-modal .login-modal-body {
        padding: 28px 22px 22px;
    }

    .login-modal h2 {
        font-size: 1.3rem;
    }
}

/* Quote-request inline shortcut */
.quote-login-shortcut {
    margin: 6px 0 16px;
    text-align: center;
    color: #d8e4f5;
    font-size: 0.95rem;
}

    .quote-login-shortcut a {
        font-weight: 600;
        color: #ffffff;
        text-decoration: underline;
    }

        .quote-login-shortcut a:hover {
            color: #2b8df2;
        }
