/*
 * HR Docs 2.0 — Login
 * Scoped visual layer, no changes to authentication logic.
 */

html {
    min-height: 100%;
}

body.hr2-login-page,
body.hr2-login-page * {
    box-sizing: border-box;
}

body.hr2-login-page {
    margin: 0;
    min-height: 100vh;
    font-family: var(--hr2-font, system-ui, sans-serif);
    color: var(--hr2-text, #172033);
    background: #f8fafc;
    -webkit-font-smoothing: antialiased;
}

.hr2-auth-shell {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 48%) minmax(0, 52%);
}

.hr2-auth-intro {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: clamp(32px, 4.5vw, 76px);
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 95% 12%,
            rgba(88, 144, 243, 0.33), transparent 40%),
        radial-gradient(circle at 2% 86%,
            rgba(29, 78, 216, 0.26), transparent 44%),
        linear-gradient(145deg, #172e53 0%, #10233f 70%, #0c1e37 100%);
}

.hr2-auth-intro::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -240px;
    bottom: -180px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.022);
    pointer-events: none;
}

.hr2-auth-brand,
.hr2-auth-mobile-brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.hr2-auth-brandmark {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #fff;
    color: #1d4ed8;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.hr2-auth-brandtext {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hr2-auth-brandtext strong {
    font-size: 19px;
    letter-spacing: -0.025em;
}

.hr2-auth-brandtext small {
    font-size: 12px;
    color: #adbfda;
}

.hr2-auth-presentation {
    position: relative;
    width: min(100%, 510px);
    padding: 52px 0;
}

.hr2-auth-kicker {
    color: #a9c9ff;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.15em;
}

.hr2-auth-presentation h1 {
    margin: 19px 0 17px;
    color: #fff;
    font-size: clamp(32px, 3.2vw, 49px);
    font-weight: 700;
    line-height: 1.17;
    letter-spacing: -0.048em;
}

.hr2-auth-presentation > p {
    max-width: 430px;
    color: #c3d1e7;
    font-size: 15px;
    line-height: 1.85;
}

.hr2-auth-preview {
    margin-top: 47px;
    width: min(100%, 440px);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.075);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.hr2-auth-preview-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 19px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    font-weight: 650;
}

.hr2-auth-preview-symbol {
    padding: 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 11px;
}

.hr2-auth-preview-dots {
    margin-left: auto;
    color: #afc4e5;
    letter-spacing: 2px;
}

.hr2-auth-preview-line {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 19px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.hr2-auth-preview-line:last-child {
    border-bottom: 0;
}

.hr2-auth-preview-icon {
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.12);
    color: #d6e5ff;
    font-size: 11px;
    font-weight: 700;
}

.hr2-auth-preview-indicator {
    width: 8px;
    height: 8px;
    margin-left: auto;
    border-radius: 50%;
    background: #93c5fd;
}

.hr2-auth-intro-foot {
    color: #9cb1d1;
    font-size: 12px;
}

.hr2-auth-intro-foot span {
    display: inline-block;
    width: 3px;
    height: 3px;
    margin: 0 8px 3px;
    border-radius: 50%;
    background: currentColor;
}

.hr2-auth-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 52px 28px 24px;
}

.hr2-auth-form-wrap {
    width: min(100%, 405px);
    margin: auto 0;
}

.hr2-auth-mobile-brand {
    display: none;
}

.hr2-auth-form-kicker {
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.hr2-auth-form-wrap h2 {
    margin: 15px 0 10px;
    color: #172033;
    font-size: clamp(28px, 3vw, 35px);
    font-weight: 750;
    letter-spacing: -0.045em;
}

.hr2-auth-subtitle {
    margin: 0 0 35px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.75;
}

.hr2-auth-error {
    margin-bottom: 22px;
    padding: 13px 15px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 13px;
    line-height: 1.5;
}

.hr2-auth-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.hr2-auth-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.hr2-auth-field label {
    color: #334155;
    font-size: 13px;
    font-weight: 650;
}

.hr2-auth-field input {
    display: block;
    width: 100%;
    height: 51px;
    padding: 0 15px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: #172033;
    font: inherit;
    font-size: 15px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.hr2-auth-field input::placeholder {
    color: #94a3b8;
}

.hr2-auth-field input:focus {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.13);
}

.hr2-auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    width: 100%;
    min-height: 51px;
    margin-top: 8px;
    padding: 12px 18px;
    border: 0;
    border-radius: 10px;
    background: #1d4ed8;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.hr2-auth-submit:hover {
    background: #1e40af;
}

.hr2-auth-submit:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}

.hr2-auth-submit span {
    font-size: 19px;
    font-weight: 400;
}

.hr2-auth-help {
    margin: 26px 0 0;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.hr2-auth-main-foot {
    color: #94a3b8;
    font-size: 11px;
    text-align: center;
}

.hr2-auth-main-foot span {
    margin: 0 5px;
}

@media (max-width: 900px) {
    .hr2-auth-shell {
        grid-template-columns: 1fr;
    }

    .hr2-auth-intro {
        min-height: auto;
        padding: 25px 28px;
    }

    .hr2-auth-brand,
    .hr2-auth-presentation,
    .hr2-auth-intro-foot {
        display: none;
    }

    .hr2-auth-main {
        min-height: 100svh;
        padding: 36px 25px 24px;
    }

    .hr2-auth-mobile-brand {
        display: flex;
        margin-bottom: 45px;
        color: #172033;
        font-size: 21px;
    }
}

@media (max-width: 600px) {
    .hr2-auth-intro {
        display: none;
    }

    .hr2-auth-main {
        padding: 30px 22px 24px;
    }

    .hr2-auth-field input {
        font-size: 16px;
    }

    .hr2-auth-main-foot {
        padding-top: 40px;
    }
}
