/* Authentication page */

:root {
    --auth-primary: #2563eb;
    --auth-primary-rgb: 37, 99, 235;
    --auth-bg-top: #18202c;
    --auth-bg-bottom: #111823;
    --auth-surface: #ffffff;
    --auth-text: #111827;
    --auth-muted: #64748b;
    --auth-border: #e2e8f0;
    --auth-danger: #ef476f;
}

html,
body.authentication-bg {
    min-height: 100%;
}

body.authentication-bg {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    overflow-x: hidden;
    color: var(--auth-text);
    background: linear-gradient(
        180deg,
        var(--auth-bg-top) 0%,
        var(--auth-bg-bottom) 100%
    );
}

.authentication-shell {
    min-height: calc(100vh - 74px);
    min-height: calc(100dvh - 74px);
    display: flex;
    align-items: center;
    padding: 42px 18px 24px;
}

.authentication-shell .container {
    max-width: 1180px;
}

.authentication-panel {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}

.authentication-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: var(--auth-surface);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.authentication-card .card-header {
    position: relative;
    padding: 25px 28px 0;
    border: 0;
    background: #ffffff;
}

.authentication-logo-link {
    display: inline-block;
}

.authentication-logo {
    display: block;
    width: auto;
    max-width: min(100%, 230px);
    height: 48px;
    margin: 0 auto 22px;
    object-fit: contain;
}

.authentication-customer-logo {
    filter: grayscale(1) contrast(1.15);
    opacity: 0.82;
    transition:
        filter 0.2s ease,
        opacity 0.2s ease;
}

.authentication-logo-link:hover .authentication-customer-logo,
.authentication-logo-link:focus .authentication-customer-logo {
    filter: grayscale(0) contrast(1);
    opacity: 1;
}

.authentication-card .card-body {
    padding: 2px 30px 28px;
}

.authentication-title {
    margin-bottom: 7px;
    color: #0f172a;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.authentication-subtitle {
    margin-bottom: 24px;
    color: var(--auth-muted);
    font-size: 0.92rem;
}

.authentication-card .form-label {
    margin-bottom: 7px;
    color: #334155;
    font-weight: 600;
}

.authentication-card .form-control,
.authentication-card .input-group-text {
    min-height: 46px;
    border-color: var(--auth-border);
    background: #ffffff;
    color: var(--auth-text);
}

.authentication-card .form-control {
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
}

.authentication-card .form-control::placeholder {
    color: #94a3b8;
}

.authentication-card .form-control:focus {
    border-color: rgba(var(--auth-primary-rgb), 0.58);
    background: rgba(var(--auth-primary-rgb), 0.035);
    box-shadow: 0 0 0 4px rgba(var(--auth-primary-rgb), 0.1);
}

.authentication-card .input-group-merge .form-control {
    border-radius: 10px 0 0 10px;
}

.authentication-card .input-group-merge .input-group-text {
    border-left: 0;
    border-radius: 0 10px 10px 0;
    padding-inline: 14px;
}

.authentication-card .input-group:focus-within .input-group-text {
    border-color: rgba(var(--auth-primary-rgb), 0.58);
    background: rgba(var(--auth-primary-rgb), 0.035);
}

.authentication-card .password-eye,
.authentication-card a {
    color: var(--auth-primary);
}

.authentication-card a:hover,
.authentication-card a:focus {
    color: #1d4ed8;
}

.authentication-card .form-check-input {
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.15rem;
    border-color: #cbd5e1;
}

.authentication-card .form-check-input:checked {
    border-color: var(--auth-primary);
    background-color: var(--auth-primary);
}

.authentication-card .form-check-input:focus {
    border-color: rgba(var(--auth-primary-rgb), 0.65);
    box-shadow: 0 0 0 4px rgba(var(--auth-primary-rgb), 0.1);
}

.authentication-card .btn-primary {
    min-height: 44px;
    padding: 0.6rem 1.4rem;
    border: 1px solid rgba(var(--auth-primary-rgb), 0.26);
    border-radius: 10px;
    background: rgba(var(--auth-primary-rgb), 0.1);
    color: var(--auth-primary);
    font-weight: 700;
    box-shadow: none;
}

.authentication-card .btn-primary:hover,
.authentication-card .btn-primary:focus,
.authentication-card .btn-primary:active {
    border-color: rgba(var(--auth-primary-rgb), 0.38);
    background: rgba(var(--auth-primary-rgb), 0.16);
    color: #1d4ed8;
    box-shadow: 0 0 0 4px rgba(var(--auth-primary-rgb), 0.08);
}

.authentication-card .btn-lg {
    min-width: 220px;
}

.authentication-card .alert {
    border-radius: 11px !important;
    font-size: 0.88rem;
    line-height: 1.5;
}

.authentication-card .alert-warning {
    border: 1px solid rgba(216, 138, 0, 0.2) !important;
    background: rgba(245, 158, 11, 0.1);
    color: #9a6700;
}

.authentication-card .alert-danger {
    border: 1px solid rgba(239, 71, 111, 0.18) !important;
    background: rgba(239, 71, 111, 0.08);
    color: #be3456;
}

.authentication-card .invalid-feedback {
    margin-top: 7px;
    color: var(--auth-danger);
    font-size: 0.78rem;
}

.authentication-support {
    margin-top: 20px;
    text-align: center;
    color: #aeb8c7;
}

.authentication-support a {
    color: #8bb4ff;
    font-weight: 700;
}

.authentication-support a:hover,
.authentication-support a:focus {
    color: #c1d5ff;
}

body.authentication-bg .footer-alt {
    position: relative;
    height: auto;
    min-height: 74px;
    padding: 20px 18px 26px;
    color: #7f8c9e;
    background: transparent;
    font-size: 0.82rem;
}

body.authentication-bg .footer-alt a {
    color: #8bb4ff;
}

body.authentication-bg .footer-alt a:hover,
body.authentication-bg .footer-alt a:focus {
    color: #c1d5ff;
}

@media (max-width: 575.98px) {
    .authentication-shell {
        min-height: calc(100vh - 88px);
        min-height: calc(100dvh - 88px);
        padding: 20px 12px 14px;
    }

    .authentication-card {
        border-radius: 14px;
    }

    .authentication-card .card-header {
        padding: 21px 22px 0;
    }

    .authentication-card .card-body {
        padding: 2px 22px 24px;
    }

    .authentication-logo {
        height: 42px;
        margin-bottom: 19px;
    }
}