/*
 * Fast6 client login
 * Scoped to fast6-login classes so other client pages are unaffected.
 */

.fast6-login-shell {
    width: 100%;
    min-height: calc(100vh - 230px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 15px;
}

.fast6-login-card {
    width: 100%;
    max-width: 960px;
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    box-shadow: 0 24px 65px rgba(15, 23, 42, 0.14);
}

.fast6-login-brand-panel {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 540px;
    padding: 56px 48px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.18), transparent 34%),
        linear-gradient(145deg, #17233d 0%, #315fbd 100%);
}

.fast6-login-brand-panel::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -90px;
    width: 260px;
    height: 260px;
    border: 45px solid rgba(255,255,255,0.08);
    border-radius: 50%;
}

.fast6-login-brand-content {
    position: relative;
    z-index: 1;
}

.fast6-login-brand-icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    border: 1px solid rgba(255,255,255,0.24);
    border-radius: 18px;
    background: rgba(255,255,255,0.12);
    font-size: 26px;
}


.fast6-login-brand-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 260px;
    max-height: 90px;
    margin: 0 0 24px;
    object-fit: contain;
    object-position: left center;
}

.fast6-login-brand-title {
    margin: 0 0 16px;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.fast6-login-brand-text {
    max-width: 340px;
    margin: 0;
    color: rgba(255,255,255,0.82);
    font-size: 16px;
    line-height: 1.7;
}

.fast6-login-form-panel {
    display: flex;
    align-items: center;
    padding: 56px 58px;
    background: #fff;
}

.fast6-login-form-inner {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.fast6-login-header {
    margin-bottom: 30px;
}

.fast6-login-header h1 {
    margin: 0 0 8px;
    color: #172033;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
}

.fast6-login-header p {
    margin: 0;
    color: #6b7280;
    font-size: 15px;
}

.fast6-login-form-panel .form-group {
    margin-bottom: 20px;
}

.fast6-login-form-panel label {
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.fast6-input-wrapper {
    position: relative;
}

.fast6-input-icon {
    position: absolute;
    top: 50%;
    left: 17px;
    z-index: 2;
    color: #8a94a6;
    font-size: 16px;
    transform: translateY(-50%);
    pointer-events: none;
}

.fast6-login-form-panel .fast6-login-input {
    height: 52px;
    padding: 10px 48px 10px 46px;
    border: 1px solid #d8dee8;
    border-radius: 10px;
    background: #fff;
    color: #172033;
    font-size: 15px;
    box-shadow: none;
}

.fast6-login-form-panel .fast6-login-input:focus {
    border-color: #315fbd;
    box-shadow: 0 0 0 3px rgba(49, 95, 189, 0.12);
}

.fast6-password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    z-index: 3;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #7b8495;
    font-size: 16px;
    transform: translateY(-50%);
    cursor: pointer;
}

.fast6-password-toggle:focus {
    outline: 2px solid rgba(49, 95, 189, 0.28);
    outline-offset: 1px;
    border-radius: 6px;
}

.fast6-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 22px;
}

.fast6-login-remember {
    margin: 0;
}

.fast6-login-remember label {
    margin: 0;
    font-weight: 500;
    cursor: pointer;
}

.fast6-login-remember input {
    margin-right: 7px;
}

.fast6-login-submit {
    min-height: 52px;
    border: 0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
}

.fast6-login-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #e8ebf0;
    font-size: 14px;
}

.fast6-login-links a {
    font-weight: 500;
}

.fast6-login-form-panel .alert {
    border-radius: 10px;
}

@media (max-width: 767px) {
    .fast6-login-shell {
        min-height: auto;
        padding: 28px 0;
    }

    .fast6-login-card {
        display: block;
        border-radius: 14px;
    }

    .fast6-login-brand-panel {
        min-height: auto;
        padding: 34px 28px;
    }

    .fast6-login-brand-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 18px;
        border-radius: 14px;
        font-size: 21px;
    }

    .fast6-login-brand-title {
        font-size: 24px;
    }

    .fast6-login-brand-text {
        font-size: 14px;
    }

    .fast6-login-form-panel {
        padding: 36px 28px;
    }

    .fast6-login-header h1 {
        font-size: 26px;
    }
}

@media (max-width: 420px) {
    .fast6-login-links {
        flex-direction: column;
        gap: 10px;
    }
}


/* Fast6 white brand panel override */
.fast6-login-brand-panel {
    color: #172033;
    background:
        radial-gradient(circle at top left, rgba(49, 95, 189, 0.10), transparent 34%),
        radial-gradient(circle at bottom right, rgba(23, 35, 61, 0.06), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    border-right: 1px solid rgba(15, 23, 42, 0.08);
}

.fast6-login-brand-panel::before {
    content: "";
    position: absolute;
    top: 24px;
    right: 24px;
    width: 120px;
    height: 120px;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(49, 95, 189, 0.10), rgba(49, 95, 189, 0.03));
    transform: rotate(12deg);
}

.fast6-login-brand-panel::after {
    right: -70px;
    bottom: -70px;
    width: 220px;
    height: 220px;
    border: 36px solid rgba(49, 95, 189, 0.08);
}

.fast6-login-brand-icon {
    border: 1px solid rgba(49, 95, 189, 0.18);
    background: rgba(49, 95, 189, 0.08);
    color: #315fbd;
}

.fast6-login-brand-title {
    color: #17233d;
}

.fast6-login-brand-text {
    color: #5b6474;
}

@media (max-width: 767px) {
    .fast6-login-brand-panel {
        border-right: 0;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    }

    .fast6-login-brand-panel::before {
        width: 90px;
        height: 90px;
        top: 18px;
        right: 18px;
    }

    .fast6-login-brand-panel::after {
        width: 160px;
        height: 160px;
        border-width: 28px;
        right: -55px;
        bottom: -55px;
    }
}


/* Fast6 unified white card and faded page background */
.fast6-login-shell {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(
            circle at 18% 20%,
            rgba(49, 95, 189, 0.12),
            transparent 34%
        ),
        radial-gradient(
            circle at 84% 78%,
            rgba(23, 35, 61, 0.07),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #f4f7fb 0%,
            #edf3fa 52%,
            #f8fafc 100%
        );

    /*
     * Extend the background beyond Blesta's central container
     * without changing the rest of the client theme.
     */
    box-shadow: 0 0 0 100vmax #f3f6fa;
    clip-path: inset(0 -100vmax);
}

.fast6-login-card {
    background: #ffffff;
    box-shadow: 0 24px 65px rgba(15, 23, 42, 0.14);
}

.fast6-login-brand-panel {
    background: #ffffff;
    border-right: 1px solid #e6ebf2;
}

.fast6-login-form-panel {
    background: #ffffff;
}

@media (max-width: 767px) {
    .fast6-login-brand-panel {
        border-right: 0;
        border-bottom: 1px solid #e6ebf2;
    }
}
