:root {
  color: #f8f2e8;
  background: #170f09;
  font-family:
    Optima, Candara, "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
  font-synthesis: none;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

.login-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 100svh;
  padding: clamp(18px, 4vw, 56px);
  background:
    linear-gradient(90deg, rgba(18, 11, 6, 0.14), rgba(18, 11, 6, 0.34)),
    image-set(
      url("/login/ormada-ceramics-studio.webp") type("image/webp")
    );
  background-position: center;
  background-size: cover;
}

.login-shell::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(18, 11, 6, 0) 52%, rgba(18, 11, 6, 0.4) 100%),
    radial-gradient(circle at 78% 47%, rgba(22, 13, 7, 0.18), transparent 36%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 10px;
  color: rgba(255, 248, 238, 0.7);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  color: #fff9ef;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0;
}

.panel-copy,
.note,
.status-message,
label span {
  color: rgba(255, 248, 238, 0.72);
}

.login-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 386px;
  border: 1px solid rgba(255, 246, 232, 0.22);
  border-radius: 8px;
  background: rgba(29, 18, 10, 0.56);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px) saturate(120%);
}

.panel-copy {
  margin-bottom: 22px;
  font-size: 0.96rem;
}

form,
label {
  display: grid;
  gap: 10px;
}

form {
  gap: 14px;
}

label span {
  font-size: 0.86rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 246, 232, 0.24);
  border-radius: 6px;
  background: rgba(255, 249, 240, 0.9);
  color: #1f160f;
  padding: 10px 12px;
}

input:focus {
  border-color: #f1dfbe;
  outline: 3px solid rgba(241, 223, 190, 0.22);
}

.primary-button,
.secondary-button {
  min-height: 46px;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}

.primary-button {
  width: 100%;
  background: #f4e2c6;
  color: #1f160f;
}

.secondary-button {
  background: rgba(255, 246, 232, 0.08);
  border-color: rgba(255, 246, 232, 0.24);
  color: #fff8ee;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.separator {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
  color: rgba(255, 248, 238, 0.6);
  font-size: 0.86rem;
}

.separator::before,
.separator::after {
  content: "";
  height: 1px;
  background: rgba(255, 246, 232, 0.22);
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.note {
  margin: 18px 0 0;
  font-size: 0.86rem;
}

.status-message {
  min-height: 1.5em;
  margin: 12px 0 0;
  font-size: 0.92rem;
}

.status-message.error {
  color: #ffd0c3;
}

@media (max-width: 760px) {
  .login-shell {
    align-items: flex-end;
    justify-content: center;
    min-height: 100svh;
    padding: 18px;
    background:
      linear-gradient(180deg, rgba(18, 11, 6, 0.08), rgba(18, 11, 6, 0.58)),
      image-set(
        url("/login/ormada-ceramics-studio-mobile.webp") type("image/webp")
      );
    background-position: left top;
    background-size: cover;
  }

  .login-panel {
    max-width: 100%;
    margin-top: min(22svh, 180px);
    background: rgba(29, 18, 10, 0.64);
  }

  .button-row {
    grid-template-columns: 1fr;
  }
}
