/* ==========================================================
   login.css (customer)  —  v4.0.0
   Scoped to: UserLogin.cshtml
   Self-contained — all form, card, button, and modal styles
   are defined here. Layout is handled by Tailwind (output.css).
   ========================================================== */


/* ==========================================================
   CARD SHELL
   ========================================================== */
.login-card {
    border-radius: 16px;
    background: rgba(38, 38, 38, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px 24px;
}

@media (min-width: 768px) {
    .login-card {
        padding: 32px 28px;
    }
}


/* ==========================================================
   INPUTS — base
   ========================================================== */
.login-input {
    width: 100%;
    padding: 12px 14px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

    .login-input:focus {
        border-color: var(--primary-color);
    }

    .login-input::placeholder {
        color: rgba(255, 255, 255, 0.3);
    }

.login-input[type="date"] {
    color-scheme: dark;
}

.login-input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.6);
    cursor: pointer;
}


/* ==========================================================
   INPUT WITH LEADING ICON
   ========================================================== */
.login-input-wrapper {
    position: relative;
}

.login-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 18px;
    pointer-events: none;
    transition: color 0.3s ease;
    z-index: 1;
}

.login-input-wrapper:focus-within .login-input-icon {
    color: var(--primary-color);
}

.login-input-wrapper .login-input {
    padding-left: 44px !important;
}


/* ==========================================================
   PASSWORD WRAPPER
   ========================================================== */
.password-wrapper {
    position: relative;
}

    .password-wrapper .login-input {
        padding-right: 44px;
    }

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    font-size: 18px;
    transition: color 0.3s ease;
    z-index: 1;
}

    .password-toggle:hover {
        color: rgba(255, 255, 255, 0.7);
    }


/* ==========================================================
   TERMS NOTICE
   ========================================================== */
.auth-terms-notice {
    font-family: var(--font-secondary);
    font-size: var(--fs-micro);
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    margin: 4px 0 14px;
    line-height: 1.6;
}

.auth-legal-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

    .auth-legal-link:hover {
        opacity: 0.8;
        text-decoration: underline;
    }


/* ==========================================================
   SUBMIT BUTTON
   ========================================================== */
.btn-next {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .btn-next:disabled {
        background: rgba(211, 69, 2, 0.3);
        color: rgba(255, 255, 255, 0.3);
        cursor: not-allowed;
    }

    .btn-next:not(:disabled) {
        background: var(--primary-color);
        color: #fff;
    }

        .btn-next:not(:disabled):hover {
            opacity: 0.9;
        }

        .btn-next:not(:disabled):active {
            transform: scale(0.98);
        }

/* Loader states */
.btn-login-text,
.btn-login-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .btn-login-loader.hidden,
    .btn-login-text.hidden {
        display: none;
    }

@keyframes loginSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.login-spinner {
    animation: loginSpin 0.8s linear infinite;
    font-size: 18px;
}


/* ==========================================================
   OR DIVIDER
   ========================================================== */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    font-family: var(--font-secondary);
    font-size: var(--fs-micro);
    color: rgba(255, 255, 255, 0.25);
}

    .auth-divider::before,
    .auth-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: rgba(255, 255, 255, 0.08);
    }


/* ==========================================================
   SOCIAL BUTTON
   ========================================================== */
.auth-social-btn {
    width: 100%;
    padding: 11px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #ffffff;
    color: #111111;
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: filter 0.2s ease;
}

    .auth-social-btn:hover {
        filter: brightness(0.96);
    }


/* ==========================================================
   TERMS & CONDITIONS MODAL
   ========================================================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: flex-start;
    padding: 24px 16px;
    overflow-y: auto;
}

    .modal[style*="flex"] {
        display: flex;
    }

.modal-content {
    background-color: #ffffff;
    width: 100%;
    max-width: 660px;
    max-height: 80vh;
    border-radius: 12px;
    padding: 32px;
    position: relative;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    margin: auto;
}

.close-button {
    position: absolute;
    right: 20px;
    top: 18px;
    font-size: 22px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    background: none;
    border: none;
    transition: color 0.2s ease;
    z-index: 10;
}

    .close-button:hover {
        color: #333;
    }

.terms-text-container {
    flex: 1;
    overflow-y: auto;
    padding-right: 16px;
    text-align: left;
    font-family: var(--font-secondary);
}

    .terms-text-container h1 {
        font-family: var(--font-main);
        font-size: 17px;
        color: #111;
        font-weight: 700;
        margin: 24px 0 10px;
        padding-bottom: 10px;
        padding-right: 36px;
        border-bottom: 1px solid #eaeaea;
        text-align: left;
    }

        .terms-text-container h1:first-child {
            margin-top: 0;
        }

    .terms-text-container h2 {
        font-family: var(--font-main);
        font-size: 13px;
        color: #1a1a1a;
        font-weight: 600;
        margin: 18px 0 6px;
    }

    .terms-text-container p {
        font-size: 13px;
        line-height: 1.7;
        color: #4a4a4a;
        margin-bottom: 12px;
    }

    .terms-text-container a {
        color: #d34502;
        text-decoration: underline;
    }

    .terms-text-container::-webkit-scrollbar {
        width: 5px;
    }

    .terms-text-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 8px;
    }

    .terms-text-container::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 8px;
    }

        .terms-text-container::-webkit-scrollbar-thumb:hover {
            background: #999;
        }


/* ==========================================================
   HELP CENTER MODAL
   ========================================================== */
.help-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

    .help-modal[style*="flex"] {
        display: flex;
    }

.help-modal-content {
    background-color: var(--dark-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 32px 24px;
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.help-close-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

    .help-close-btn:hover {
        color: var(--primary-color);
    }

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

    .help-header h2 {
        font-family: var(--font-main);
        font-size: 18px;
        font-weight: 600;
        color: #fff;
        margin-bottom: 6px;
    }

    .help-header p {
        font-family: var(--font-secondary);
        font-size: 13px;
        color: rgba(255, 255, 255, 0.35);
    }

.help-channels-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.help-card-link {
    text-decoration: none;
    display: block;
}

.help-channel-card {
    background-color: var(--dark-bg-hero);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

    .help-channel-card:hover {
        border-color: var(--primary-border-subtle);
        background: var(--primary-bg-faint);
    }

.channel-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.fb-card .channel-icon {
    background: rgba(24,119,242,0.12);
    color: #1877f2;
}

.email-card .channel-icon {
    background: var(--primary-bg-subtle);
    color: var(--primary-color);
}

.phone-card .channel-icon {
    background: var(--success-bg-subtle);
    color: var(--success-color);
}

.channel-details {
    flex: 1;
}

    .channel-details h3 {
        font-family: var(--font-main);
        font-size: 14px;
        font-weight: 600;
        color: #fff;
        margin-bottom: 2px;
    }

    .channel-details p {
        font-family: var(--font-secondary);
        font-size: 12px;
        color: rgba(255, 255, 255, 0.35);
    }

.arrow-icon {
    color: rgba(255, 255, 255, 0.2);
    font-size: 14px;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.help-channel-card:hover .arrow-icon {
    color: var(--primary-color);
}


/* ==========================================================
   TERMS & CONDITIONS MODAL  —  dark admin style
   Replaces old .modal / .modal-content / .terms-text-container
   ========================================================== */

/* Overlay */
.tc-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px;
    overflow-y: auto;
}

    .tc-modal[style*="flex"] {
        display: flex;
    }

/* Box */
.tc-modal__box {
    background: var(--dark-bg-hero, #242424);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    width: 100%;
    max-width: 660px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: tcModalSlideUp 0.25s ease;
    margin: auto;
}

@keyframes tcModalSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

/* Header */
.tc-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.tc-modal__title {
    font-family: var(--font-main);
    font-size: var(--fs-body, 16px);
    font-weight: var(--fw-semibold, 600);
    color: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

    .tc-modal__title i {
        font-size: 20px;
        color: var(--primary-color, #d34502);
    }

.tc-modal__close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

    .tc-modal__close:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.06);
    }

/* Scrollable body */
.tc-modal__body {
    flex: 1;
    overflow-y: auto;
    padding: 22px 24px;
}

    /* Body typography */
    .tc-modal__body h1 {
        font-family: var(--font-main);
        font-size: 13px;
        font-weight: var(--fw-semibold, 600);
        color: var(--primary-color, #d34502);
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin: 22px 0 8px;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

        .tc-modal__body h1:first-child {
            margin-top: 0;
        }

    .tc-modal__body h2 {
        font-family: var(--font-main);
        font-size: var(--fs-small, 14px);
        font-weight: var(--fw-semibold, 600);
        color: rgba(255, 255, 255, 0.85);
        margin: 16px 0 5px;
    }

    .tc-modal__body p {
        font-family: var(--font-secondary);
        font-size: 13px;
        line-height: 1.7;
        color: rgba(255, 255, 255, 0.5);
        margin-bottom: 10px;
    }

    .tc-modal__body strong {
        color: rgba(255, 255, 255, 0.8);
        font-weight: var(--fw-semibold, 600);
    }

    .tc-modal__body a {
        color: var(--primary-color, #d34502);
        text-decoration: underline;
        text-underline-offset: 2px;
    }

        .tc-modal__body a:hover {
            opacity: 0.8;
        }

    /* Scrollbar */
    .tc-modal__body::-webkit-scrollbar {
        width: 5px;
    }

    .tc-modal__body::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.03);
        border-radius: 8px;
    }

    .tc-modal__body::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.12);
        border-radius: 8px;
    }

        .tc-modal__body::-webkit-scrollbar-thumb:hover {
            background: rgba(255,255,255,0.22);
        }
