:root {
  --bg: #f6f4f1;
  --panel: rgba(255, 255, 255, 0.96);
  --text: #2a2019;
  --muted: #6d625a;
  --accent: #8f1d1d;
  --accent-dark: #651313;
  --line: #e6dccf;
  --shadow: rgba(70, 41, 24, 0.12);
}

* {
  box-sizing: border-box;
}

body.auth-page {
  margin: 0;
  min-height: 100vh;
  font-family: Calibri, Candara, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #faf8f5 0%, #f2eeea 100%);
}

.auth-layout {
  width: 100%;
  min-height: 100vh;
}

.auth-banner {
  border-top: 6px solid #8f1d1d;
  border-bottom: 6px solid #8f1d1d;
}

.auth-banner img {
  width: 100%;
  display: block;
  max-height: 250px;
  object-fit: cover;
}

.auth-panel {
  min-height: calc(100vh - 250px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 18px;
}

.login-card {
  width: min(560px, calc(100% - 24px));
  padding: 32px 38px;
  border-radius: 28px;
  background: var(--panel);
  box-shadow: 0 18px 50px var(--shadow);
  text-align: center;
}

.login-card h1 {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
  line-height: 1.02;
  font-weight: 800;
}

.login-copy,
.domain-copy,
.auth-user p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.9rem;
}

.google-box {
  display: flex;
  justify-content: center;
  padding: 24px 0 20px;
}

.domain-copy {
  max-width: 340px;
  margin: 0 auto;
  font-weight: 600;
}

.domain-copy strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 800;
}

.auth-user {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  text-align: left;
}

.auth-user img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: #efe4d7;
}

.auth-user strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.96rem;
  font-weight: 800;
}

.auth-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
}

.button-link.primary {
  background: var(--accent);
  color: #fff;
}

.button-link.primary:hover {
  background: var(--accent-dark);
}

.button-link.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

[hidden] {
  display: none !important;
}

@media (max-width: 560px) {
  .auth-banner img {
    max-height: 210px;
  }

  .auth-panel {
    min-height: calc(100vh - 210px);
    padding: 20px 14px 26px;
  }

  .login-card {
    width: 100%;
    padding: 26px 20px;
    border-radius: 22px;
  }

  .auth-user {
    align-items: flex-start;
  }
}
