/* Auth pages — matches the public indigo overhaul */

html,
body.fx-auth-body {
    max-width: 100%;
    overflow-x: hidden;
}

.fx-auth-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f6f6f9;
    color: #3d4658;
}

.fx-auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 72px;
    max-height: 72px;
    padding: 0 28px;
    background: #16243e;
    flex-shrink: 0;
}

.fx-auth-logo img {
    max-height: 36px;
    width: auto;
}

.fx-auth-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.fx-auth-header-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
    font-size: 14px;
}

.fx-auth-header-link:hover {
    color: #fff;
}

.fx-auth-header .tp-btn {
    padding: 10px 18px;
    line-height: 1.2;
    white-space: nowrap;
}

.fx-auth-shell {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(280px, 42%) minmax(0, 1fr);
    min-height: 0;
}

.fx-auth-body--wide .fx-auth-shell {
    grid-template-columns: minmax(240px, 34%) minmax(0, 1fr);
}

.fx-auth-aside {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    background: #16243e;
    color: #fff;
}

.fx-auth-aside-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.fx-auth-aside-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(22, 36, 62, 0.72) 0%, rgba(22, 36, 62, 0.92) 100%);
}

.fx-auth-aside-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    padding: 48px 40px;
}

.fx-auth-aside-inner .tp-section-title-pre {
    color: #7fe3f2;
}

.fx-auth-aside-inner h2 {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px;
}

.fx-auth-aside-inner p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
    max-width: 420px;
}

.fx-auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px 48px;
    background: #f6f6f9;
    overflow-y: auto;
}

.fx-auth-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(22, 36, 62, 0.08);
    padding: 36px 32px;
}

.fx-auth-body--wide .fx-auth-card {
    max-width: 720px;
}

.fx-auth-card .tp-section-title-pre {
    margin-bottom: 8px;
}

.fx-auth-title {
    color: #16243e;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
}

.fx-auth-lead {
    color: #5b6577;
    margin: 0 0 28px;
    line-height: 1.6;
}

.fx-auth-card .form-group {
    margin-bottom: 18px;
}

.fx-auth-card label,
.fx-auth-card .form-label {
    display: block;
    font-weight: 600;
    color: #16243e;
    margin-bottom: 8px;
}

.fx-auth-card label.required::after,
.fx-auth-card .form-label.required::after,
.fx-auth-card .required::after {
    content: " *";
    color: #d64545;
}

.fx-auth-card .form--control,
.fx-auth-card .form-control,
.fx-auth-card select.form--control {
    width: 100%;
    border: 1px solid #e3e8ef;
    background: #f7f8fb;
    border-radius: 8px;
    height: 42px;
    min-height: 42px;
    padding: 8px 14px;
    line-height: 1.4;
    color: #16243e;
    box-shadow: none;
}

.fx-auth-card .form--control:focus,
.fx-auth-card .form-control:focus {
    outline: none;
    border-color: #00accc;
    background: #fff;
    box-shadow: none;
}

.fx-auth-card .input-group {
    flex-wrap: nowrap;
}

.fx-auth-card .input-group-text,
.fx-auth-card .mobile-code {
    background: #16243e;
    color: #fff !important;
    border: 0;
    border-radius: 8px 0 0 8px;
    min-width: 64px;
    height: 42px;
    justify-content: center;
    align-items: center;
}

.fx-auth-card .input-group .form--control {
    border-radius: 0 8px 8px 0;
}

.fx-auth-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.fx-auth-agree {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fx-auth-agree input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #00accc;
}

.fx-auth-card .fx-auth-agree label,
.fx-auth-card .fx-auth-agree .fx-auth-agree-text {
    display: inline;
    margin: 0;
    font-weight: 500;
    line-height: 1.5;
}

.fx-auth-card .forgot-pass,
.fx-auth-card a {
    color: #00accc;
    font-weight: 600;
}

.fx-auth-card a:hover {
    color: #16243e;
}

.fx-auth-card .btn--base,
.fx-auth-card .btn.btn--base,
.fx-auth-card .tp-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.fx-auth-switch {
    margin: 20px 0 0;
    color: #5b6577;
    text-align: center;
}

.fx-auth-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    padding: 16px 28px;
    background: #fff;
    border-top: 1px solid #eef1f6;
    font-size: 13px;
    color: #5b6577;
}

.fx-auth-footer p {
    margin: 0;
}

.fx-auth-footer a {
    color: #5b6577;
    margin-left: 14px;
}

.fx-auth-footer a:hover {
    color: #16243e;
}

.fx-auth-card .verification-code-wrapper {
    width: 100% !important;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    display: block;
}

.fx-auth-card .verification-code::after {
    background-color: #fff;
}

.fx-auth-modal .modal-content {
    border: 0;
    border-radius: 12px;
}

.fx-auth-modal .modal-header,
.fx-auth-modal .modal-footer {
    border-color: #eef1f6;
}

@media (max-width: 991px) {
    .fx-auth-shell,
    .fx-auth-body--wide .fx-auth-shell {
        grid-template-columns: 1fr;
    }

    .fx-auth-aside {
        min-height: 200px;
    }

    .fx-auth-aside-inner {
        padding: 32px 24px;
        min-height: 200px;
    }

    .fx-auth-aside-inner h2 {
        font-size: 26px;
        margin-bottom: 8px;
    }

    .fx-auth-panel {
        padding: 24px 16px 40px;
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .fx-auth-header {
        height: 65px;
        max-height: 65px;
        padding: 0 16px;
    }

    .fx-auth-header-link span {
        display: none;
    }

    .fx-auth-header .tp-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .fx-auth-card {
        padding: 28px 20px;
    }

    .fx-auth-title {
        font-size: 24px;
    }

    .fx-auth-footer {
        padding: 16px;
        justify-content: center;
        text-align: center;
    }
}
