
.login-shell {
  width: min(1020px, calc(100vw - 2rem));
  margin: 3.4rem auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  gap: 0;
  align-items: center;
  border-radius: 36px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 36px 72px rgba(239, 111, 108, 0.12);
}

.login-showcase,
.login-card,
.top-card,
.toolbar-card,
.calendar-card,
.modal {
  backdrop-filter: blur(20px);
}

.login-showcase {
  border-radius: 0;
  padding: 2.6rem 2.4rem 2rem;
  min-height: 660px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 200, 87, 0.22), transparent 28%),
    radial-gradient(circle at 82% 16%, rgba(31, 157, 139, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(255, 249, 239, 0.98), rgba(255, 246, 251, 0.92));
}

.login-showcase::after {
  content: "";
  position: absolute;
  inset: auto auto 8% 50%;
  width: 320px;
  height: 320px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0));
}

.login-showcase-copy {
  position: relative;
  z-index: 1;
}

.login-showcase h1 {
  margin: 0.35rem 0 0;
  max-width: none;
  font-size: clamp(2.7rem, 4vw, 4rem);
  line-height: 1;
  font-weight: 800;
}

.hero-copy {
  max-width: none;
  margin: 0.5rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

.login-scene {
  position: relative;
  min-height: 460px;
  z-index: 1;
  display: grid;
  place-items: center;
}

.login-scene-dot {
  position: absolute;
  border-radius: 999px;
}

.login-scene-dot-a {
  top: 12%;
  left: 14%;
  width: 16px;
  height: 16px;
  background: rgba(255, 200, 87, 0.95);
}

.login-scene-dot-b {
  top: 18%;
  right: 16%;
  width: 12px;
  height: 12px;
  background: rgba(31, 157, 139, 0.88);
}

.login-scene-dot-c {
  bottom: 22%;
  right: 12%;
  width: 18px;
  height: 18px;
  background: rgba(239, 111, 108, 0.88);
}

.login-mascot-card {
  position: relative;
  inset: auto;
  display: block;
}

.login-mascot {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 1 / 1;
  border-radius: 42% 42% 30% 30%;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0) 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.55)),
    linear-gradient(135deg, rgba(255, 200, 87, 0.72), rgba(239, 111, 108, 0.46));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 26px 52px rgba(239, 111, 108, 0.1),
    inset 0 -16px 36px rgba(255, 255, 255, 0.56);
  animation: login-float 4.2s ease-in-out infinite;
}

.login-mascot-ears,
.login-mascot-face,
.login-mascot-hands {
  position: absolute;
}

.login-mascot-ears {
  inset: 2% 11% auto;
  height: 120px;
}

.login-mascot-ear {
  position: absolute;
  top: 0;
  width: 114px;
  height: 118px;
  border-radius: 55% 45% 48% 52%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 -12px 24px rgba(255, 200, 87, 0.22);
}

.login-mascot-ear::after {
  content: "";
  position: absolute;
  inset: 24% 24% 18%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(239, 111, 108, 0.18), rgba(255, 200, 87, 0.14));
}

.login-mascot-ear-left {
  left: 4%;
  transform: rotate(-12deg);
}

.login-mascot-ear-right {
  right: 4%;
  transform: rotate(12deg);
}

.login-mascot-face {
  inset: 21% 14% 13%;
  border-radius: 48% 48% 42% 42%;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 240, 0.86));
}

.login-mascot-eye {
  position: absolute;
  top: 38%;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(23, 32, 51, 0.08);
  overflow: hidden;
}

.login-mascot-eye span {
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: #172033;
  transition: transform 0.22s ease;
}

.login-mascot-eye span::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 10px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
}

.login-mascot-eye-left {
  left: 25%;
}

.login-mascot-eye-right {
  right: 25%;
}

.login-mascot-mouth {
  position: absolute;
  left: 50%;
  bottom: 23%;
  width: 70px;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 0 0 999px 999px;
  border-bottom: 4px solid rgba(23, 32, 51, 0.82);
}

.login-mascot-blush {
  position: absolute;
  top: 55%;
  width: 56px;
  height: 24px;
  border-radius: 999px;
  background: rgba(239, 111, 108, 0.16);
  filter: blur(1px);
}

.login-mascot-blush-left {
  left: 15%;
}

.login-mascot-blush-right {
  right: 15%;
}

.login-mascot-hands {
  left: 50%;
  bottom: 4%;
  width: 72%;
  height: 120px;
  transform: translateX(-50%);
  pointer-events: none;
}

.login-mascot-hand {
  position: absolute;
  bottom: 0;
  width: 110px;
  height: 110px;
  border-radius: 40% 40% 46% 46%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 248, 240, 0.82)),
    linear-gradient(135deg, rgba(255, 200, 87, 0.2), rgba(239, 111, 108, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 28px rgba(239, 111, 108, 0.1);
  transition: transform 0.26s ease;
}

.login-mascot-hand-left {
  left: 8%;
}

.login-mascot-hand-right {
  right: 8%;
}

.login-card {
  border-radius: 0;
  padding: 3rem 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92));
  border-left: 1px solid rgba(15, 23, 42, 0.05);
}

.login-card h2 {
  margin: 0;
  font-size: 2rem;
}

.login-hint {
  margin: 0.45rem 0 1.5rem;
  line-height: 1.65;
  color: var(--muted);
}

.login-form,
.highlight-form {
  display: grid;
  gap: 1.05rem;
}

.field {
  display: grid;
  gap: 0.6rem;
}

.field span {
  font-size: 0.92rem;
  font-weight: 700;
}

.field-shell {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.field-shell:focus-within {
  border-color: rgba(31, 157, 139, 0.42);
  box-shadow:
    0 0 0 4px rgba(31, 157, 139, 0.1),
    0 16px 28px rgba(31, 157, 139, 0.08);
  transform: translateY(-1px);
}

.field-icon {
  flex: 0 0 auto;
  width: 3rem;
  display: grid;
  place-items: center;
  color: var(--teal);
  font-weight: 800;
  font-size: 0.92rem;
}

.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea,
.field-input,
.inline-form input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.field-shell input {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  padding-left: 0.1rem !important;
  padding-right: 0.85rem !important;
}

.field input:not([type="checkbox"]):not([type="radio"]):focus,
.field select:focus,
.field textarea:focus,
.field-input:focus,
.inline-form input:focus {
  outline: none;
  border-color: rgba(31, 157, 139, 0.5);
  box-shadow: 0 0 0 4px rgba(31, 157, 139, 0.12);
  transform: translateY(-1px);
}

.field textarea,
.business-form-textarea {
  resize: vertical;
  min-height: 5.75rem;
  line-height: 1.6;
}

.field-toggle {
  flex: 0 0 auto;
  margin-right: 0.55rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: none;
  background: rgba(31, 157, 139, 0.1);
  color: var(--teal);
  font-weight: 700;
}

.login-submit-btn {
  margin-top: 0.15rem;
  min-height: 54px;
}

.field-static-input {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(248, 250, 252, 0.92);
  color: var(--ink);
  font-weight: 700;
  box-sizing: border-box;
}

.field-static-input:focus {
  outline: none;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: none;
  transform: none;
}

.field-note {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.field-support-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.55rem;
}

.field-support-row .field-note {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.field-inline-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.field-inline-action-row select {
  width: 100%;
}

.custom-date-field {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
}

.validity-custom-date-input {
  width: 100%;
  min-width: 0;
}

.validity-preset-stack {
  display: grid;
  gap: 0.7rem;
}

.validity-preset-select {
  width: 100%;
}

.custom-date-display {
  width: 100%;
  min-width: 0;
}

.custom-date-display.is-invalid {
  border-color: rgba(229, 62, 62, 0.45);
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.12);
}

.custom-date-trigger {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.custom-date-trigger svg {
  width: 1.05rem;
  height: 1.05rem;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.custom-date-native-input {
  position: absolute;
  top: 0;
  right: 0;
  width: 2.85rem;
  height: 100%;
  opacity: 0;
  pointer-events: auto;
  cursor: pointer;
  z-index: 2;
  border: 0;
}

.field-action-btn {
  margin-top: 0.7rem;
  justify-self: flex-start;
  padding: 0.58rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 157, 139, 0.16);
  background: rgba(31, 157, 139, 0.1);
  color: var(--teal);
  font-weight: 700;
}

.account-form-grid > .field {
  align-content: start;
}

button {
  font: inherit;
  cursor: pointer;
}

.primary-btn,
.secondary-btn,
.toggle-btn,
.copy-action-btn,
.ghost-btn,
.icon-btn {
  border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.primary-btn:hover,
.secondary-btn:hover,
.toggle-btn:hover,
.copy-action-btn:hover,
.ghost-btn:hover,
.icon-btn:hover {
  transform: translateY(-1px);
}

.primary-btn {
  padding: 0.95rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--coral), #ff9178);
  color: white;
  font-weight: 700;
  box-shadow: 0 16px 28px rgba(239, 111, 108, 0.22);
}

.secondary-btn,
.toggle-btn,
.copy-action-btn,
.ghost-btn {
  padding: 0.9rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.toggle-btn {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.copy-action-btn {
  background: rgba(43, 127, 255, 0.1);
  color: var(--azure);
  border: 1px solid rgba(43, 127, 255, 0.16);
}

.toggle-btn.is-active {
  background: linear-gradient(135deg, rgba(31, 157, 139, 0.92), rgba(32, 187, 149, 0.75));
  color: white;
  box-shadow: 0 16px 28px rgba(31, 157, 139, 0.24);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.icon-btn {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-size: 1.3rem;
}

.full-width {
  width: 100%;
}

.form-error {
  min-height: 1.35rem;
  margin: 0;
  color: var(--danger);
  font-size: 0.92rem;
}

#account-error,
#account-create-error {
  display: none;
}

.login-footer {
  display: none;
}

.login-links {
  margin-top: 1rem;
  display: grid;
  gap: 0.25rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.page-login .login-mascot-eye span {
  animation: mascot-blink 5.8s ease-in-out infinite;
}

.page-login.is-org-focus .login-mascot-eye span {
  transform: translate(-6px, -1px);
}

.page-login.is-user-focus .login-mascot-eye span {
  transform: translate(6px, -1px);
}

.page-login.is-password-focus .login-mascot-eye span {
  transform: translateY(-1px) scaleY(0.45);
}

.page-login.is-password-focus .login-mascot-hand-left {
  transform: translate(38px, -62px) rotate(-16deg);
}

.page-login.is-password-focus .login-mascot-hand-right {
  transform: translate(-38px, -62px) rotate(16deg);
}

@keyframes login-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes mascot-blink {
  0%,
  44%,
  48%,
  100% {
    clip-path: inset(0 0 0 0 round 999px);
  }
  46% {
    clip-path: inset(40% 0 40% 0 round 999px);
  }
}

