* {
  box-sizing: border-box;
}

:root {
  --bg: #f5f5f2;
  --card: #ffffff;
  --text: #111111;
  --muted: #6b6b67;
  --border: #e5e5df;
  --accent: #111111;
  --success: #176b3a;
  --error: #b42318;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.owner-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.owner-auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 38px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.08);
}

.owner-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.owner-auth-brand strong {
  font-weight: 900;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 0;
}

.owner-auth-header {
  margin-top: 42px;
}

.owner-auth-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.owner-auth-header h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.owner-auth-header p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 32px;
  padding: 4px;
  background: #f1f1ec;
  border-radius: 12px;
}

.auth-tab {
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.auth-tab.active {
  background: #ffffff;
  color: var(--text);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.06);
}

.owner-auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 26px;
}

.owner-auth-form.hidden {
  display: none;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.form-field input {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 11px;
  outline: none;
  background: #ffffff;
  color: var(--text);
  font-size: 15px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-field input::placeholder {
  color: #a0a09a;
}

.form-field input:focus {
  border-color: #111111;
  box-shadow:
    0 0 0 3px rgba(17, 17, 17, 0.08);
}

.auth-submit {
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  background: #111111;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.auth-submit:hover {
  transform: translateY(-1px);
}

.auth-submit:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.owner-auth-message {
  min-height: 24px;
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.5;
}

.owner-auth-message.success {
  color: var(--success);
}

.owner-auth-message.error {
  color: var(--error);
}

.owner-auth-footer {
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}


.forgot-password-row {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 12px;
}

.forgot-password-row a {
  color: #333333;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-password-row a:hover {
  color: #000000;
  text-decoration: underline;
}

@media (max-width: 560px) {
  .owner-auth-page {
    padding: 16px;
    align-items: flex-start;
  }

  .owner-auth-card {
    margin-top: 16px;
    padding: 26px 20px;
    border-radius: 20px;
  }

  .owner-auth-header {
    margin-top: 32px;
  }

  .owner-auth-header h1 {
    font-size: 34px;
  }
}
