﻿:root {
    --primary: #005aff;
    --primary-dark: #000a37;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: "Century Gothic", "Helvetica Neue", "Segoe UI", sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    background: linear-gradient(rgba(246,249,255,0.2), rgba(246,249,255,0.2)), url('../PIC/LOGIN/BNew.png');
    background-size: cover;
    background-position: center;
}

/* ===== layout ===== */

.wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    padding: 20px;
    z-index: 2;
}

.wrapper.is-mfa {
    max-width: 560px;
}

.card {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(59,130,246,0.15);
    border-radius: 28px;
    padding: 40px 38px 38px;
    box-shadow: 0 7px 20px 4px rgba(0,70,170,0.3);
    text-align: center;
}

.logo {
    display: block;
    width: 100%;
    max-width: 380px;
    height: auto;
    margin: 0 auto 6px;
}

.pos-fixed-bottom-center {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 18px;
    z-index: 99999;
    display: flex;
    justify-content: center;
    width: 100%;
    pointer-events: none;
}

    .pos-fixed-bottom-center > div {
        pointer-events: auto;
    }


/* ===== form structure ===== */

.login-block {
    text-align: left;
    margin-top: 6px;
}

.input-group {
    text-align: left;
    margin-bottom: 18px;
    position: relative;
}

    .input-group label {
        font-size: 16px;
        color: #4a5c82;
        display: block;
        margin-bottom: 6px;
    }

.input-group-pass {
    margin-bottom: 6px;
}

.center-row {
    text-align: center;
    margin-top: 10px;
}

.password-forgot {
    text-align: center;
    margin-bottom: 12px;
}

    .password-forgot a {
        font-size: 14px;
        font-weight: 500;
    }

/*.footer {
            margin-top: 20px;
            font-size: 12px;
            color: #7f90b8;
            text-align: center;
        }*/


/* ===== inputs ===== */

.input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
}

    .input-wrapper .input-field {
        height: 42px;
    }

.input-field {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #dbe7ff;
    background: #f9fbff;
    font-size: 14px;
    transition: 0.2s ease;
    outline: none;
    display: block;
}

    .input-field:focus {
        border-color: #2563eb;
        background: #ffffff;
        box-shadow: 0 0 0 3px rgba(0,90,255,0.10);
    }

.has-icon-left {
    padding-left: 48px;
}

.has-icon-right {
    padding-right: 48px;
}

.input-icon {
    position: absolute;
    top: 21px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

    .input-icon svg {
        width: 18px;
        height: 18px;
        fill: currentColor;
    }

.input-icon-left {
    left: 14px;
    pointer-events: none;
}

.input-icon-right {
    right: 14px;
    cursor: pointer;
}

/* ===== buttons ===== */

.magiclink-form {
    margin-top: 14px !important;
}

.magiclink-actions {
    text-align: center;
}

.btn-primary {
    width: 80%;
    padding: 11px;
    margin-top: 6px;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 44px;
    line-height: 1;
}

    .btn-primary:hover {
        background: var(--primary-dark);
    }

/* Secondary buttons */
.btn-secondary {
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid rgba(0,90,255,0.35);
    background: transparent;
    color: var(--primary);
}

#btnCancelResend {
    opacity: 0.9;
}

.btn-secondary:hover, .btn-secondary-custom:hover {
    background: rgba(0,90,255,0.15);
}

.btn-secondary-custom {
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: var(--primary);
    color: #fff;
}

.btn-secondary-custom:hover {
    background: var(--primary-dark);
}


/* ===== links ===== */

.link-muted {
    color: #6b7da6;
    text-decoration: none;
    font-size: 14px;
}

    .link-muted:hover {
        color: var(--primary) !important;
        text-decoration: underline;
    }


/* ===== MFA ===== */

.mfa-code-boxes {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    width: 100%;
    margin-bottom: 16px;
}

.mfa-box {
    width: 100%;
    height: 48px;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid #3b73af;
    color: #3b73af;
    background: #ffffff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .mfa-box:focus {
        outline: none;
        border-color: #3b73af;
        box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
    }

    .mfa-box:not(:placeholder-shown) {
        border-color: #3b73af;
    }

#mfaError,
#mfaInfo {
    font-size: 13px;
    border-radius: 10px;
}

.mfa-resend {
    text-align: center;
    font-size: 14px;
    color: #6b7da6;
}

.resend-link {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
    margin: 0 2px;
}

    .resend-link:hover {
        color: var(--primary-dark);
    }







/* ===== toast ===== */

.toast {
    border-radius: 14px;
    color: #fff;
    box-shadow: 0 20px 50px rgba(0,0,0,0.18);
    max-width: 92vw;
}

    .toast .d-flex {
        justify-content: center;
    }


.toast-body {
    text-align: center;
    font-size: 14px;
    padding: 14px 18px;
}

.bg-danger {
    background: #dc3545 !important;
}

.bg-primary {
    background: var(--primary) !important;
}


/* ===== loading ===== */

.loading-overlay {
    display: none;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.spinner-custom {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 6px solid rgba(0,90,255,0.20);
    border-top-color: rgba(0,90,255,1);
    animation: spin 0.9s linear infinite;
}

.btn-primary .spinner-grow {
    width: 16px;
    height: 16px;
    background: transparent;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    border-top-color: var(--primary);
    animation: spin 0.9s linear infinite;
    opacity: 1;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== badge & terms ===== */

#lcqualitybadge {
    position: absolute;
    left: 10px;
    bottom: 10px;
}

#termsWrap {
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 12px;
}


/* ===== responsive ===== */

@media (max-height: 700px) {

    .wrapper {
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px;
    }

    .card {
        width: 100%;
        max-height: calc(100vh - 24px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 28px 22px 22px;
        border-radius: 22px;
    }

    .logo {
        max-width: 320px;
    }
}

@media (min-width: 520px) {
    .wrapper.is-mfa {
        max-width: 560px;
    }
}
