html,
body {
    min-height: 100%;
}

body.auth-background {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(rgba(4, 15, 36, 0.24), rgba(4, 15, 36, 0.34)),
        url("/images/pmp-full-login-wide.png") center center / 100% 100% no-repeat fixed;
    color: #172033;
}

.auth-layout {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 0;
}

.auth-panel {
    width: min(100%, 430px);
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

.auth-shell {
    width: 100%;
    min-height: 100vh;
    padding: 48px 40px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-top: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    background: rgba(248, 250, 252, 0.08);
    box-shadow: 0 18px 54px rgba(2, 13, 33, 0.2);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-shell-wide {
    width: min(100vw - 48px, 640px);
}

.auth-logo {
    display: block;
    max-width: 250px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.22));
}

.auth-logo-panel {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 30px;
}

.auth-inline-form {
    width: 100%;
}

.auth-inline-title {
    margin-bottom: 28px;
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(2, 13, 33, 0.42);
}

.auth-field-row {
    margin-left: -8px;
    margin-right: -8px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.auth-field-row:last-of-type {
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.auth-field-row .form-label,
.auth-field-row .form-control {
    margin-left: 8px;
    margin-right: 8px;
    width: calc(100% - 16px);
}

.auth-inline-form .form-label,
.auth-card .form-label {
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 1px 6px rgba(2, 13, 33, 0.45);
}

.auth-inline-form .form-control,
.auth-card .form-control,
.auth-card textarea {
    min-height: 46px;
    color: #0f172a;
    border-color: rgba(255, 255, 255, 0.46);
    background-color: rgba(255, 255, 255, 0.48);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}

.auth-inline-form .form-control::placeholder,
.auth-card .form-control::placeholder {
    color: #64748b;
}

.auth-inline-form .form-control:focus,
.auth-card .form-control:focus,
.auth-card textarea:focus {
    color: #0f172a;
    border-color: #1d4e89;
    background-color: rgba(255, 255, 255, 0.82);
    box-shadow: 0 0 0 0.2rem rgba(29, 78, 137, 0.18);
}

.auth-inline-form .btn {
    min-height: 48px;
    font-weight: 700;
}

.auth-inline-form .alert {
    margin-bottom: 14px;
}

.auth-card {
    width: 100%;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.auth-card .card-body {
    padding: 0 !important;
    color: #162033;
}

.auth-card h1,
.auth-card h2,
.auth-card h3,
.auth-card strong {
    color: #ffffff;
    text-shadow: 0 1px 6px rgba(2, 13, 33, 0.45);
}

.auth-card .text-muted {
    color: rgba(255, 255, 255, 0.86) !important;
}

.auth-visual,
.auth-visual-image {
    display: none;
}

@media (max-aspect-ratio: 4 / 3) {
    body.auth-background {
        background:
            linear-gradient(rgba(4, 15, 36, 0.24), rgba(4, 15, 36, 0.34)),
            url("/images/pmp-full-login-portrait.png") center center / 100% 100% no-repeat fixed;
    }
}

@media (max-width: 768px) {
    body.auth-background {
        background:
            linear-gradient(rgba(4, 15, 36, 0.3), rgba(4, 15, 36, 0.44)),
            url("/images/pmp-full-login-mobile.png") center top / cover no-repeat fixed;
    }

    .auth-layout {
        align-items: stretch;
        justify-content: center;
        padding: 0;
    }

    .auth-panel {
        width: 100%;
    }

    .auth-shell {
        padding: 30px 20px;
        background: rgba(248, 250, 252, 0.12);
    }

    .auth-shell-wide {
        width: 100%;
    }

    .auth-logo {
        max-width: 210px;
    }
}
