:root {
  color-scheme: dark;
  --bg: #050719;
  --surface: #0a0d27;
  --text: #f8f8ff;
  --subtle: #b4b8d0;
  --muted: #8b91b1;
  --stroke: rgba(136, 144, 221, .24);
  --violet: #8b20f0;
  --purple: #b21ee1;
  --blue: #1d4de5;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; }
body { min-width: 320px; min-height: 100vh; min-height: 100dvh; margin: 0; overflow-x: hidden; color: var(--text); background: radial-gradient(ellipse at 88% 46%, #15083c 0%, transparent 42%), #050719; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 2px solid #a876ff; outline-offset: 3px; }
.page-decoration, .orb { position: fixed; pointer-events: none; z-index: 0; }
.decoration-blue { width: min(58vw, 820px); height: 100vh; left: -18vw; bottom: -40vh; border-radius: 50%; background: radial-gradient(circle, rgba(42, 47, 255, .45), rgba(42, 47, 255, 0) 68%); filter: blur(32px); }
.decoration-purple { width: min(70vw, 930px); height: 100vh; right: -39vw; top: -45vh; border-radius: 50%; background: radial-gradient(circle, rgba(137, 0, 254, .59), rgba(137, 0, 254, 0) 70%); filter: blur(15px); }
.orb { border-radius: 50%; z-index: 1; }
.orb-top { width: 670px; height: 670px; right: -385px; top: -480px; border: 75px solid rgba(152, 22, 241, .53); box-shadow: inset 0 0 45px rgba(84, 18, 183, .8), 0 0 70px rgba(139, 32, 240, .15); }
.orb-bottom { width: 620px; height: 620px; left: -395px; bottom: -490px; border: 66px solid rgba(136, 18, 237, .66); box-shadow: inset 0 0 40px rgba(79, 0, 158, .5), 0 0 70px rgba(87, 1, 206, .16); }
.login-layout { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.09fr) minmax(540px, .91fr); position: relative; isolation: isolate; z-index: 2; }
.presentation { position: relative; display: flex; align-items: center; justify-content: center; padding: 70px 28px 70px clamp(48px, 7.6vw, 128px); background-image: linear-gradient(90deg, rgba(3,4,22,.04) 0%, rgba(4,5,27,.65) 35%, rgba(5,6,28,.96) 100%), linear-gradient(0deg, rgba(4,5,24,.48), rgba(6,7,30,.16)), url('assets/barbearia-bg.webp'); background-size: cover; background-position: left center; }
.presentation::after { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse at 15% 32%, rgba(82, 15, 181, .22), transparent 48%); }
.presentation-content { position: relative; z-index: 1; width: min(100%, 445px); transform: translateY(-3px); }
.presentation-logo { display: block; width: min(100%, 445px); height: auto; margin-bottom: 35px; }
.presentation-subtitle { margin: 0 0 40px; color: #c3c4da; font-size: clamp(17px, 1.45vw, 23px); font-weight: 400; line-height: 1.48; }
.feature-list { padding: 0; margin: 0; list-style: none; display: grid; gap: 21px; }
.feature-list li { display: flex; align-items: center; gap: 19px; font-size: clamp(15px, 1.2vw, 18px); font-weight: 400; color: #ecedfc; }
.feature-list svg { width: 29px; height: 29px; flex: 0 0 29px; stroke: #b52dff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: none; filter: drop-shadow(0 0 4px rgba(123, 32, 230,.18)); }
.login-area { display: flex; justify-content: center; align-items: center; min-width: 0; padding: 40px clamp(24px, 5vw, 100px) 40px clamp(18px, 3vw, 40px); }
.login-card { width: min(100%, 602px); border: 1px solid rgba(116, 119, 207,.28); border-radius: 33px; background: linear-gradient(145deg, rgba(11,14,38,.95), rgba(9,10,30,.94)); box-shadow: 0 24px 75px rgba(2,2,18,.34), inset 0 0 0 1px rgba(82, 84, 143, .10); padding: clamp(36px, 3.65vw, 58px) clamp(30px, 3.7vw, 58px) clamp(31px, 3.55vw, 54px); }
.card-header { display: flex; flex-direction: column; align-items: center; text-align: center; }
.login-logo { display: block; height: auto; width: min(100%, 385px); }
.brand-divider, .mobile-tagline { display: none; }
.desktop-tagline { margin: 34px auto 39px; font-size: 17px; color: #d0d1e5; font-weight: 400; line-height: 1.62; }
.login-form { display: flex; flex-direction: column; gap: 20px; }
.field { min-width: 0; }
.field > label { display: none; }
.input-wrapper { position: relative; display: flex; align-items: center; width: 100%; height: 70px; border: 1px solid rgba(102, 112, 189, .31); background: linear-gradient(105deg, rgba(15,20,51,.88), rgba(19,22,53,.66)); border-radius: 16px; transition: border-color .2s ease, box-shadow .2s ease; }
.input-wrapper:focus-within { border-color: rgba(170, 91, 255, .8); box-shadow: 0 0 0 3px rgba(129, 40, 234, .10); }
.field.error .input-wrapper { border-color: rgba(255, 104, 137, .75); }
.field-icon { position: absolute; left: 21px; top: 50%; transform: translateY(-50%); width: 27px; height: 27px; stroke: #9ea8d4; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: none; pointer-events: none; }
.mobile-email { display: none; }
.input-wrapper input { width: 100%; height: 100%; padding: 0 57px 0 70px; border: 0; background: transparent; color: #fff; caret-color: #b278ff; outline: 0; font-size: 16px; }
.input-wrapper input::placeholder { color: #828aa9; opacity: 1; }
.toggle-password { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; padding: 5px; background: transparent; border: 0; color: #9da6d0; border-radius: 9px; display: grid; place-items: center; }
.toggle-password svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.eye-open { display: none; }
.toggle-password[aria-pressed="true"] .eye-open { display: block; }
.toggle-password[aria-pressed="true"] .eye-closed { display: none; }
.field-error { display: block; margin: 0; padding-left: 3px; color: #ff9bb3; font-size: 12px; line-height: 1.5; }
.field-error:empty { display: none; }
.form-options { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin: 4px 0 8px; }
.remember-option { display: inline-flex; gap: 11px; align-items: center; cursor: pointer; font-size: 16px; color: #f1effa; user-select: none; }
.remember-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.custom-check { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border: 2px solid rgba(132, 135, 200, .52); border-radius: 7px; background: rgba(19, 22, 56, .53); transition: all .18s ease; }
.custom-check svg { width: 19px; height: 19px; stroke: white; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.remember-option input:checked + .custom-check { border-color: #9428ec; background: linear-gradient(135deg, #a631f5, #6e18ef); }
.remember-option input:checked + .custom-check svg { opacity: 1; }
.remember-option input:focus-visible + .custom-check { outline: 2px solid #a876ff; outline-offset: 3px; }
.text-button { border: 0; background: transparent; color: #a978ff; padding: 0; font-weight: 500; line-height: 1.5; text-decoration: none; }
.text-button:hover { color: #d1a5ff; text-decoration: underline; }
.forgot-link { font-size: 15px; }
.submit-button { height: 73px; width: 100%; position: relative; border: 1px solid rgba(188, 81, 254, .42); border-radius: 17px; color: #fff; background: linear-gradient(110deg, #194be2 0%, #5823dc 43%, #9d14d6 100%); box-shadow: 0 14px 35px rgba(84, 31, 203, .17); font-size: 23px; font-weight: 600; transition: filter .18s, transform .18s; }
.submit-button:hover { filter: brightness(1.13); transform: translateY(-1px); }
.submit-button:active { transform: translateY(0); }
.submit-button:disabled { cursor: progress; opacity: .8; transform: none; }
.submit-arrow { position: absolute; right: 30px; top: 50%; transform: translateY(-50%); width: 25px; height: 25px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button-spinner { display: none; width: 23px; height: 23px; border: 3px solid rgba(255,255,255,.42); border-top-color: white; border-radius: 50%; animation: spin .8s linear infinite; position: absolute; right: 29px; top: calc(50% - 11px); }
.submit-button.is-loading .button-spinner { display: block; }
.submit-button.is-loading .submit-arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-message { border-radius: 12px; border: 1px solid rgba(151, 112, 246,.29); background: rgba(40, 31, 79,.5); padding: 12px 14px; font-size: 13px; line-height: 1.5; color: #d5c6ff; }
.form-message.error-message { background: rgba(79, 26, 54, .4); border-color: rgba(246, 101, 134,.34); color: #ffc9d7; }
.card-footer { margin-top: 39px; }
.card-footer p { margin: 0; text-align: center; color: #b0b4d0; font-size: 13px; }
.desktop-footer { display: flex; gap: 20px; align-items: center; white-space: nowrap; }
.desktop-footer::before, .desktop-footer::after { content: ""; height: 1px; min-width: 26px; background: rgba(112, 120, 199, .42); flex: 1; }
.mobile-footer { display: none; }
/* Dialogs used for local UI flows. Their server-side actions are configurable in script.js. */
.app-modal { width: min(92vw, 435px); padding: 35px; border: 1px solid rgba(160, 128, 244,.4); border-radius: 23px; color: #fff; background: #11122d; box-shadow: 0 30px 90px rgba(0,0,0,.65); }
.app-modal::backdrop { background: rgba(1,2,15,.76); backdrop-filter: blur(8px); }
.modal-close { background: transparent; color: #c8c7e5; font-size: 31px; border: 0; position: absolute; right: 18px; top: 10px; line-height: 1; }
.modal-icon { font-size: 30px; color: #ba79ff; }
.app-modal h2 { font-size: 23px; margin: 15px 0 10px; }
.app-modal p { color: #bfc0d9; font-size: 14px; line-height: 1.7; }
.app-modal form label { display: block; font-size: 14px; margin: 20px 0 9px; }
.app-modal form input { height: 50px; background: #171b3e; border: 1px solid #515484; border-radius: 10px; width: 100%; padding: 12px; color: white; }
.modal-action { border: 0; border-radius: 11px; padding: 14px; color: white; font-weight: 600; background: linear-gradient(110deg, #3c41e1, #9a20ed); width: 100%; margin-top: 16px; }
.app-modal .modal-feedback { margin-bottom: 0; font-size: 12px; color: #ba9fff; }
@media (min-width: 1650px) {
  .login-layout { grid-template-columns: minmax(0, 1.1fr) minmax(590px, .9fr); }
  .login-card { width: 600px; }
}
@media (max-width: 1190px) and (min-width: 768px) {
  .login-layout { grid-template-columns: minmax(0, 1fr) minmax(450px, 1fr); }
  .login-area { padding: 25px; }
  .login-card { padding: 35px 32px; border-radius: 27px; }
  .presentation { padding-left: 35px; }
  .presentation-content { width: 360px; }
  .desktop-tagline { font-size: 15px; }
  .login-logo { width: 310px; }
  .feature-list { gap: 18px; }
  .feature-list li { font-size: 14px; gap: 10px; }
  .forgot-link, .remember-option { font-size: 13px; }
}
@media (max-width: 767px) {
  body { background: radial-gradient(circle at 103% 32%, #43066b 0%, transparent 29%), radial-gradient(circle at -15% 75%, rgba(24,56,237,.56), transparent 40%), #05081e; }
  .login-layout { display: flex; justify-content: center; align-items: center; min-height: 100vh; min-height: 100dvh; padding: 35px 15px; }
  .presentation { display: none; }
  .login-area { display: block; padding: 0; width: 100%; max-width: 480px; }
  .login-card { border-radius: 28px; width: 100%; padding: 42px clamp(22px, 5.8vw, 35px) 34px; background: linear-gradient(156deg, rgba(11,14,43,.94), rgba(7,8,29,.95)); border-color: rgba(139,131,207,.46); box-shadow: 0 24px 76px rgba(0, 0, 21,.25); }
  .login-logo { width: min(94%, 322px); }
  .brand-divider { width: 165px; margin-top: 24px; display: flex; align-items: center; justify-content: center; gap: 11px; }
  .brand-divider i { display: block; height: 1px; background: rgba(103,119,207,.30); flex: 1; }
  .brand-divider b { display: block; width: 45px; height: 2px; border-radius: 9px; background: linear-gradient(90deg, #3647e5, #bd1dd7); }
  .desktop-tagline { display: none; }
  .mobile-tagline { display: block; margin: 25px 0 34px; font-size: clamp(14px, 3.7vw, 16px); color: #bfc1d5; line-height: 1.6; }
  .login-form { gap: 18px; }
  .field > label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 11px; }
  .input-wrapper { height: 62px; border-radius: 14px; }
  .desktop-user { display: none; }
  .mobile-email { display: block; }
  .field-icon { left: 18px; width: 23px; height: 23px; }
  .input-wrapper input { font-size: 15px; padding-left: 54px; padding-right: 49px; }
  .toggle-password { right: 12px; }
  .form-options { margin: 0 0 6px; gap: 8px; }
  .remember-option { font-size: 14px; gap: 10px; }
  .custom-check { width: 23px; height: 23px; flex-basis: 23px; border-radius: 5px; }
  .custom-check svg { width: 16px; height: 16px; }
  .forgot-link { font-size: 13px; }
  .submit-button { height: 63px; border-radius: 14px; font-size: 20px; }
  .submit-arrow { width: 24px; height: 24px; right: 22px; }
  .card-footer { margin-top: 27px; }
  .desktop-footer { display: none; }
  .mobile-footer { display: block; }
  .card-footer p { font-size: 13px; line-height: 1.6; }
  .orb-top { top: -310px; right: -365px; width: 510px; height: 510px; border-width: 2px; border-color: rgba(231, 44, 239, .55); }
  .orb-bottom { width: 420px; height: 420px; bottom: -310px; left: -320px; border-width: 2px; border-color: rgba(76, 113, 255, .8); }
}
@media (max-width: 390px) {
  .login-layout { padding: 20px 12px; }
  .login-card { padding-top: 32px; padding-bottom: 27px; }
  .mobile-tagline { margin-bottom: 26px; }
  .forgot-link { font-size: 12px; }
  .remember-option { font-size: 12px; }
}
@media (max-width: 350px) { .form-options { align-items: flex-start; } .login-logo { width: 100%; } }
@media (max-height: 740px) and (min-width: 768px) {
  .login-area { padding-block: 18px; }
  .login-card { padding-block: 24px; }
  .login-logo { max-width: 280px; }
  .desktop-tagline { margin: 19px 0 23px; }
  .login-form { gap: 12px; }
  .input-wrapper { height: 58px; }
  .submit-button { height: 62px; }
  .card-footer { margin-top: 22px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
