/* Login proposal: equal brand and form panels. Loaded only by the login view. */
.auth-body {
    display: block;
    background: #fff;
}

.auth-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100svh;
    max-width: none;
    padding: 0;
}

.auth-visual {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: clamp(2.5rem, 5vw, 5rem);
    color: #fff;
    background: radial-gradient(ellipse at 100% 100%, #3264a4 0%, transparent 65%),
                linear-gradient(145deg, #102b51, #1a3c6e 65%);
}

.auth-eyebrow {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .18em;
    color: #d3e2f5;
}

.auth-eyebrow span {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #8cc8fa;
}

.auth-visual-content {
    position: relative;
    margin: 5rem 0;
    max-width: 510px;
}

.auth-visual-rule {
    width: 44px;
    height: 3px;
    margin-bottom: 1.8rem;
    border-radius: 2px;
    background: #86bdf0;
}

.auth-visual h2 {
    font-size: clamp(2.35rem, 3.8vw, 4.25rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.045em;
}

.auth-visual h2 span { color: #a8cff4; }

.auth-visual-content > p {
    max-width: 330px;
    margin-top: 1.5rem;
    color: #d3e2f5;
    font-size: 1.05rem;
    line-height: 1.8;
}

.auth-visual-footer {
    color: #c0d3ea;
    font-size: .75rem;
}

.auth-orbits {
    position: absolute;
    z-index: -1;
    right: -240px;
    bottom: -290px;
    width: 620px;
    height: 620px;
    border: 1px solid #ffffff12;
    border-radius: 50%;
    box-shadow: 0 0 0 65px #ffffff05, 0 0 0 130px #ffffff04,
                0 0 0 195px #ffffff03;
    pointer-events: none;
}

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 2.5rem clamp(2rem, 5vw, 5rem);
}

.auth-card {
    width: 100%;
    max-width: 380px;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.auth-brand {
    align-items: flex-start;
    text-align: left;
    margin-bottom: 1.5rem;
}

.auth-logo { width: min(240px, 100%); height: auto; max-height: none; }

.auth-brand p {
    margin-top: .5rem;
    color: #65758a;
    font-size: .8rem;
}

.auth-heading { margin-bottom: 1.25rem; }

.auth-heading h1 {
    color: #182b46;
    font-size: clamp(1.35rem, 1.8vw, 1.6rem);
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: -.035em;
}

.auth-heading p {
    margin-top: .35rem;
    color: #65758a;
    font-size: .9rem;
}

.auth-card .auth-field { margin-bottom: 1rem; }
.auth-card .auth-field + .auth-field { margin-bottom: .5rem; }

.auth-card .form-group label {
    margin-bottom: .4rem;
    color: #34445b;
    font-weight: 600;
}

.auth-card .form-control {
    min-height: 48px;
    border-color: #dbe2eb;
    border-radius: 9px;
    padding: .65rem .85rem;
    background: #fbfcfe;
}

.auth-card .form-control::placeholder { color: #7b8799; }
.auth-card .form-control:focus {
    background: #fff;
    border-color: var(--color-primary-lt);
    box-shadow: 0 0 0 3px #1a3c6e10;
}
.auth-card .input-icon-right .form-control { padding-right: 3.25rem; }

.auth-field label {
    transition: color .2s ease;
}

.auth-card .auth-field:focus-within label { color: var(--color-primary); }

/* One shared message area: hints and errors replace each other without moving the fields. */
.auth-feedback {
    display: grid;
    align-items: start;
    min-height: 2.8em;
    margin: 0 0 .5rem;
    font-size: .75rem;
    line-height: 1.4;
}

.auth-feedback > p {
    grid-area: 1 / 1;
    min-width: 0;
    overflow-wrap: anywhere;
    animation: auth-feedback-enter .16s ease-out;
}

.auth-guidance { color: #65758a; }

.auth-card .auth-field.has-error .form-control {
    border-color: #c13c3c;
    background: #fffafa;
}

.auth-card .auth-field.has-error .form-control:focus {
    box-shadow: 0 0 0 3px #c13c3c18;
}

.auth-card .auth-field.has-error label { color: #b33333; }

.auth-login-error {
    color: #b33333;
    font-weight: 500;
}

@keyframes auth-feedback-enter {
    from { opacity: 0; transform: translateY(-2px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .auth-feedback > p { animation: none; }
    .auth-card .auth-field label,
    .auth-card .auth-field .form-control { transition: none; }
}

.auth-card .toggle-password {
    right: .25rem;
    width: 44px;
    height: 44px;
    color: #65758a;
    border-radius: 6px;
}

.auth-card .btn-primary {
    min-height: 48px;
    margin-top: 0;
    border-radius: 9px;
    font-size: .9rem;
    font-weight: 600;
    box-shadow: 0 4px 10px #1a3c6e18;
}

.auth-card button:focus-visible {
    outline: 3px solid #2d9cdb;
    outline-offset: 3px;
}

.auth-card .auth-footer {
    margin-top: 1.5rem;
    padding-top: 0;
    color: #65758a;
    font-size: .75rem;
}

@media (max-width: 760px) {
    .auth-wrapper { grid-template-columns: minmax(0, 1fr); }
    .auth-visual { padding: 1.75rem 1.5rem 2rem; }
    .auth-eyebrow { font-size: .6rem; }
    .auth-visual-content { margin: 1.75rem 0 0; max-width: none; }
    .auth-visual-rule, .auth-visual-footer { display: none; }
    .auth-visual h2 { font-size: clamp(1.8rem, 6vw, 2.5rem); }
    .auth-visual-content > p { margin-top: .8rem; font-size: .85rem; max-width: 340px; }
    .auth-form-panel { padding: 1.75rem 1.5rem; }
    .auth-logo { width: min(210px, 100%); }
    .auth-card .form-control { font-size: 1rem; }
}
