* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    color: #0a285d;
    font-family: Arial, Helvetica, sans-serif;
    background: #eef4f8 url('../images/contour-login-bg.png') center center / cover no-repeat fixed;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 58px 20px 28px;
}

.login-card {
    position: relative;
    width: 100%;
    max-width: 352px;
    padding: 38px 32px 20px;
    border: 1px solid rgba(13, 72, 120, .08);
    border-radius: 15px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 18px 36px rgba(20, 61, 88, .22);
}

.login-card > p {
    margin: -8px 0 18px;
    color: #60778d;
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
}

.circle-logo {
    position: absolute;
    top: -37px;
    left: 50%;
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: #fff;
    transform: translateX(-50%);
    box-shadow: 0 4px 12px rgba(20, 61, 88, .12);
}

.circle-logo img {
    width: 95px;
    height: auto;
}

.login-title {
    margin: 8px 0 0;
    color: #0a285d;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .5px;
    text-align: center;
}

.title-underline {
    width: 43px;
    height: 3px;
    margin: 12px auto 19px;
    border-radius: 3px;
    background: #0b94cf;
}

.field-label {
    display: block;
    margin: 0 0 7px;
    color: #09275a;
    font-size: 11px;
    font-weight: 700;
}

.input-wrap {
    position: relative;
    margin-bottom: 4px;
}

.field-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    color: #0999d2;
    font-size: 16px;
    transform: translateY(-50%);
    pointer-events: none;
}

.login-input {
    width: 100%;
    height: 43px;
    padding: 0 52px 0 45px;
    border: 1px solid #ccd7df;
    border-radius: 7px;
    outline: 0;
    color: #183552;
    font-size: 12px;
}

.login-input:focus {
    border-color: #079bd5;
    box-shadow: 0 0 0 3px rgba(7, 155, 213, .12);
}

.login-input::placeholder {
    color: #8c9aa7;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 9px;
    border: 0;
    background: transparent;
    color: #078bc4;
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
    transform: translateY(-50%);
}

.field-error,
.message {
    display: block;
    min-height: 16px;
    margin: 3px 0 8px;
    color: #b42318;
    font-size: 10px;
    line-height: 1.35;
}

.message ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.forgot-row {
    margin: 2px 0 17px;
    text-align: right;
}

.forgot-link {
    color: #078bc4;
    font-size: 10px;
    font-weight: 700;
}

.forgot-link.is-disabled {
    color: #8494a3;
}

.login-button-wrap {
    position: relative;
}

.login-btn {
    width: 100%;
    height: 43px;
    border: 0;
    border-radius: 7px;
    background: linear-gradient(180deg, #09aed5 0%, #0184c6 100%);
    box-shadow: 0 7px 14px rgba(0, 132, 198, .23);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

.login-btn:hover,
.login-btn:focus-visible {
    background: linear-gradient(180deg, #079fc5 0%, #006fa9 100%);
}

.login-secondary-form {
    margin-top: 12px;
    text-align: center;
}

.login-secondary-action {
    padding: 6px 10px;
    border: 0;
    color: #078bc4;
    background: transparent;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
}

.login-secondary-action:hover,
.login-secondary-action:focus {
    color: #075f86;
    text-decoration: underline;
}

.success-message {
    min-height: 0;
    padding: 8px 10px;
    border-radius: 6px;
    color: #176b45;
    background: #e8f7ef;
}

.button-arrow {
    position: absolute;
    top: 50%;
    right: 16px;
    color: #fff;
    font-size: 21px;
    pointer-events: none;
    transform: translateY(-54%);
}

.powered-by {
    margin-top: 14px;
    color: #98a6b5;
    font-size: 9px;
    text-align: center;
}

.provider-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.provider-line {
    height: 1px;
    flex: 1;
    background: #d5dde3;
}

.provider-logo {
    width: 95px;
    height: auto;
}

.version {
    position: fixed;
    right: 10px;
    bottom: 7px;
    color: rgba(37, 73, 103, .6);
    font-size: 9px;
}

@media (max-width: 480px) {
    body {
        background-position: 45% center;
    }

    .login-page {
        padding: 55px 16px 26px;
    }

    .login-card {
        padding: 34px 25px 18px;
    }
}
