:root {
    --oto-login-blue: #0d6efd;
    --oto-login-blue-dark: #0b5ed7;
    --oto-login-text: #172033;
    --oto-login-muted: #667085;
}

html,
body.oto-login-page {
    min-height: 100%;
}

body.oto-login-page {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--oto-login-text);
    font-family: Tahoma, Arial, sans-serif;
    background: #e8eef5 url("../images/login/OtoTraderBG.png") center center / cover no-repeat fixed;
}

body.oto-login-page::before {
    position: fixed;
    inset: 0;
    z-index: 0;
    content: "";
    background: rgba(16, 35, 59, .12);
    pointer-events: none;
}

.oto-login-main {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 32px 16px;
}

.oto-login-card {
    width: min(100%, 400px);
    padding: 32px;
    background: rgba(255, 255, 255, .97);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 20px;
    box-shadow: 0 20px 55px rgba(18, 38, 63, .22);
    backdrop-filter: blur(5px);
}

.oto-login-brand {
    display: grid;
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    color: #fff;
    font-size: 21px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(145deg, #1d7df2, #0755ba);
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(13, 110, 253, .24);
    place-items: center;
}

.oto-login-title {
    margin: 0;
    color: var(--oto-login-text);
    font-size: 30px;
    font-weight: 800;
    text-align: center;
    letter-spacing: -.4px;
}

.oto-login-subtitle {
    margin: 7px 0 27px;
    color: var(--oto-login-muted);
    font-size: 15px;
    text-align: center;
}

.oto-login-card .form-label {
    margin-bottom: 7px;
    color: #344054;
    font-size: 14px;
    font-weight: 700;
}

.oto-login-input-wrap {
    position: relative;
}

.oto-login-input-wrap > .bi {
    position: absolute;
    top: 50%;
    right: 15px;
    z-index: 2;
    color: #7a8699;
    font-size: 18px;
    transform: translateY(-50%);
    pointer-events: none;
}

.oto-login-input-wrap .form-control {
    min-height: 48px;
    padding-right: 44px;
    padding-left: 14px;
    font-size: 15px;
    border: 1px solid #d6dde8;
    border-radius: 11px;
    box-shadow: none;
}

.oto-login-input-wrap .form-control:focus {
    border-color: #72aef9;
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .13);
}

.oto-login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 11px;
    background-color: var(--oto-login-blue);
    transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.oto-login-submit:hover,
.oto-login-submit:focus-visible {
    background-color: var(--oto-login-blue-dark);
    box-shadow: 0 8px 18px rgba(13, 110, 253, .2);
}

.oto-login-submit:active {
    transform: translateY(1px);
}

.oto-login-local-reset {
    margin-top: 18px;
    font-size: 14px;
    text-align: center;
}

.oto-login-local-reset a {
    color: var(--oto-login-blue-dark);
    font-weight: 700;
    text-decoration: none;
}

.oto-login-local-reset a:hover,
.oto-login-local-reset a:focus-visible {
    text-decoration: underline;
}

.oto-login-validation:empty,
.oto-field-validation:empty {
    display: none;
}

.oto-login-validation {
    padding: 10px 12px;
    margin-bottom: 18px;
    color: #842029;
    font-size: 13px;
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    border-radius: 9px;
}

.oto-login-validation ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.oto-field-validation {
    display: block;
    margin-top: 5px;
    font-size: 12px;
}

@media (max-width: 575.98px) {
    body.oto-login-page {
        background-attachment: scroll;
    }

    .oto-login-main {
        align-items: flex-end;
        padding: 20px 14px;
    }

    .oto-login-card {
        padding: 26px 22px;
        border-radius: 18px;
    }

    .oto-login-title {
        font-size: 27px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .oto-login-submit {
        transition: none;
    }
}
