/* Gerenciamento Alunos Pilates — tela de login */
:root {
    color-scheme: light;
    --ink: #26372f;
    --muted: #788078;
    --green: #405b4c;
    --green-dark: #30483b;
    --sage: #dce4d8;
    --cream: #f5f4ef;
    --white: #fffefa;
    --terracotta: #c98768;
    --line: #e5e7df;
    --danger: #b64c43;
    font-family: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(480px, 0.92fr);
    overflow: hidden;
}

.brand-panel {
    min-height: 100vh;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    padding: 46px clamp(38px, 6vw, 88px) 30px;
    overflow: hidden;
    background: #e8ece3;
}
.brand-panel__texture {
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .23;
    background-image: radial-gradient(#8b9a89 0.65px, transparent 0.65px);
    background-size: 17px 17px;
    mask-image: linear-gradient(135deg, black, transparent 75%);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    width: fit-content;
    color: var(--green-dark);
    text-decoration: none;
}
.brand__mark {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(64, 91, 76, .25);
    border-radius: 15px;
}
.brand__mark svg { width: 30px; height: 30px; }
.brand__name {
    font-family: "Manrope", sans-serif;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.8px;
}
.brand__name span { color: var(--terracotta); }

.brand-panel__content {
    position: relative;
    z-index: 2;
    max-width: 520px;
    margin-top: clamp(76px, 11vh, 128px);
}
.eyebrow, .form-heading__overline {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #718071;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
}
.eyebrow span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--terracotta);
}
.brand-panel h1 {
    margin: 23px 0 17px;
    max-width: 520px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(38px, 4.3vw, 59px);
    line-height: 1.12;
    letter-spacing: -2.7px;
    font-weight: 600;
}
.brand-panel h1 em {
    color: #718775;
    font-style: normal;
}
.brand-panel__content p {
    max-width: 400px;
    margin: 0;
    color: #69766c;
    font-size: 15px;
    line-height: 1.8;
}

.wellness-art {
    position: relative;
    width: min(100%, 510px);
    height: 300px;
    margin: auto auto 5px;
}
.wellness-art__sun {
    position: absolute;
    width: 225px;
    height: 225px;
    top: 34px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #d7dfd1;
}
.wellness-art__ring {
    position: absolute;
    border: 1px solid rgba(91, 117, 96, .22);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-22deg);
}
.wellness-art__ring--one { width: 390px; height: 170px; }
.wellness-art__ring--two { width: 440px; height: 215px; transform: translate(-50%, -50%) rotate(24deg); }
.wellness-art__figure {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}
.wellness-art__figure svg { width: min(100%, 420px); height: auto; }
.wellness-art__caption {
    position: absolute;
    right: 0;
    bottom: 7px;
    color: #758174;
    font-family: "Manrope", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
}
.brand-panel__footer {
    color: #899388;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
}
.brand-panel__footer span { padding: 0 7px; color: var(--terracotta); }

.form-panel {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 55px clamp(35px, 7vw, 100px);
    background: var(--white);
}
.form-panel__inner { width: 100%; max-width: 410px; }
.mobile-brand { display: none; }
.form-heading { margin-bottom: 38px; }
.form-heading__overline { color: #a27b65; font-size: 9px; }
.form-heading h2 {
    margin: 13px 0 8px;
    font-family: "Manrope", sans-serif;
    font-size: 36px;
    line-height: 1.2;
    letter-spacing: -1.5px;
    font-weight: 700;
}
.form-heading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.login-form { display: flex; flex-direction: column; gap: 22px; }
.field label {
    display: block;
    margin-bottom: 9px;
    color: #39473e;
    font-size: 12px;
    font-weight: 700;
}
.field__control {
    height: 54px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.field__control:focus-within {
    border-color: #829987;
    box-shadow: 0 0 0 3px rgba(106, 135, 111, .12);
}
.field__control > svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: #91a092;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.field__control input {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
    font-size: 13px;
}
.field__control input::placeholder { color: #b1b8b0; }
.password-toggle {
    width: 30px;
    height: 34px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 7px;
    color: #89978b;
    background: transparent;
    cursor: pointer;
}
.password-toggle:hover { color: var(--green); background: #f2f5f0; }
.password-toggle svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.field__error { display: block; min-height: 0; margin-top: 5px; color: var(--danger); font-size: 11px; }
.field.has-error .field__control { border-color: #d58b82; }
.form-message { display: none; padding: 11px 13px; border-radius: 9px; font-size: 12px; line-height: 1.5; }
.form-message.is-visible { display: block; }
.form-message.is-error { color: #93433c; background: #fbefed; }
.form-message.is-success { color: #3e684d; background: #edf5ed; }

.submit-button {
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 2px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: var(--green);
    box-shadow: 0 7px 16px rgba(48, 72, 59, .14);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .2s, box-shadow .2s;
}
.submit-button:hover { background: var(--green-dark); box-shadow: 0 9px 20px rgba(48, 72, 59, .2); transform: translateY(-1px); }
.submit-button:active { transform: translateY(0); }
.submit-button:disabled { opacity: .7; cursor: wait; transform: none; }
.submit-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.submit-button.is-loading svg { display: none; }
.submit-button.is-loading .submit-button__text::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 9px;
    vertical-align: -2px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: white;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.access-note {
    display: flex;
    gap: 13px;
    margin-top: 34px;
    padding: 17px 16px;
    border: 1px solid #e8ebe3;
    border-radius: 13px;
    background: #f8f9f5;
}
.access-note__icon {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #66816c;
    background: #e9efe6;
}
.access-note__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.access-note strong { display: block; margin: 1px 0 5px; color: #435047; font-size: 11px; line-height: 1.5; }
.access-note p { margin: 0 0 4px; color: #828b81; font-size: 11px; }
.access-note a { color: #58745e; font-size: 12px; font-weight: 700; text-decoration: none; }
.access-note a:hover { text-decoration: underline; }

.form-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 38px;
    color: #a0a69e;
    font-size: 10px;
}
.form-footer__dot { width: 3px; height: 3px; border-radius: 50%; background: #c98768; }

@media (max-width: 900px) {
    .login-layout { grid-template-columns: minmax(340px, .9fr) minmax(400px, 1.1fr); }
    .brand-panel { padding-left: 38px; padding-right: 38px; }
    .brand-panel h1 { font-size: 43px; }
    .wellness-art { transform: scale(.88); transform-origin: center bottom; width: 115%; margin-left: -7.5%; }
    .form-panel { padding-left: 42px; padding-right: 42px; }
}
@media (max-width: 700px) {
    .login-layout { display: block; min-height: 100svh; }
    .brand-panel { display: none; }
    .form-panel { min-height: 100svh; padding: 35px 24px 28px; align-items: center; }
    .form-panel__inner { max-width: 430px; }
    .mobile-brand { display: inline-flex; margin-bottom: 55px; }
    .form-heading { margin-bottom: 31px; }
    .form-heading h2 { font-size: 33px; }
    .access-note { margin-top: 28px; }
    .form-footer { margin-top: 32px; }
}
@media (max-width: 380px) {
    .form-panel { padding-left: 19px; padding-right: 19px; }
    .mobile-brand { margin-bottom: 42px; }
    .form-heading h2 { font-size: 30px; }
    .access-note { padding: 14px 12px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
