﻿/* The login page no longer loads site.css, so it keeps its own root size (the same 14px / 16px the site used). */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.login-page {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #0f4c81 0%, #198754 100%);
    display: flex;
    align-items: center;
}

.login-container {
    width: 100%;
}

.login-card {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
    padding: 18px;
}

.form-signin {
    max-width: 100%;
    padding: 0;
    margin: 0 auto;
}

.login-form-panel {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border: 1px solid #e3edf7;
    border-radius: 24px;
    padding: 28px 24px 24px;
}

.form-header {
    margin-bottom: 24px;
}

.form-kicker {
    display: inline-block;
    background-color: #e8f1fb;
    color: #1b6ec2;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form-title {
    margin: 14px 0 8px;
    color: #213547;
    font-size: 28px;
    font-weight: 700;
}

.form-description {
    margin: 0;
    color: #6c7a89;
    font-size: 14px;
    line-height: 1.5;
}

.form-field {
    margin-bottom: 18px;
}

.field-label {
    display: block;
    margin-bottom: 8px;
    color: #243b53;
    font-size: 14px;
    font-weight: 600;
}

.input-shell {
    position: relative;
}

.login-input {
    position: relative;
    font-size: 15px;
    min-height: 56px;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 1px solid #d6e2ee;
    border-radius: 16px;
    background-color: #fdfefe;
    box-shadow: 0 8px 18px rgba(15, 76, 129, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.login-input:focus {
    border-color: #1b6ec2;
    box-shadow: 0 0 0 0.25rem rgba(27, 110, 194, 0.15);
    transform: translateY(-1px);
}

.account-wall {
    margin-top: 20px;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    -moz-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);
    -webkit-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.3);
    box-shadow: none;
}

.login-title {
    color: #ffffff;
    font-size: 34px;
    font-weight: 700;
    display: block;
    margin: 12px 0 6px;
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 0;
}

.profile-img {
    width: 90px;
    height: 90px;
    margin: 0 auto 18px;
    display: block;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    border-radius: 50%;
    border: 4px solid #eef3f8;
}

.need-help {
    margin-top: 10px;
}

.new-account {
    display: block;
    margin-top: 10px;
}

.brand-badge {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.brand-badge .bi {
    -webkit-text-stroke: 2px currentColor; /* the thin "+" of bootstrap-icons, as heavy as the old badge */
}

.input-icon-group {
    position: relative;
    margin-bottom: 14px;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    color: #7b8ba1;
    z-index: 3;
    font-size: 16px;
}

.form-actions {
    padding-top: 8px;
}

.btn-login {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 16px;
    padding: 0.875rem 1.25rem;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #1b6ec2 0%, #0f4c81 100%);
    box-shadow: 0 14px 24px rgba(15, 76, 129, 0.25);
    transition: all 0.2s ease-in-out;
}

.btn-login:hover,
.btn-login:focus {
    transform: translateY(-1px);
    box-shadow: 0 18px 28px rgba(15, 76, 129, 0.3);
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
}

.login-alert > .bi {
    margin-top: 2px;
}

.login-input.has-toggle {
    padding-right: 3.5rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    z-index: 4;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #5b6b80;
    font-size: 18px;
}

.password-toggle:hover {
    color: #0f4c81;
    background-color: #eef4fb;
}

.password-toggle:focus-visible {
    outline: 3px solid rgba(27, 110, 194, 0.35);
    outline-offset: 0;
}

.btn-login:disabled {
    opacity: 0.85;
    transform: none;
}

.errorList {
    margin-bottom: 18px;
    text-align: left;
    font-size: 13px;
    background-color: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 14px;
    padding: 12px 14px;
}

.login-footer {
    color: #ffffff;
    margin: 18px 0 6px;
    font-size: 13px;
    opacity: 0.9;
}

@media (max-width: 576px) {
    .login-form-panel {
        padding: 24px 18px 20px;
        border-radius: 20px;
    }

    .form-title {
        font-size: 24px;
    }

    .login-input,
    .btn-login {
        min-height: 52px;
    }
}
