/* Google Material Symbols */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: 300;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'liga';
  vertical-align: middle;
}

.icon-sm {
  font-size: 18px;
}

body.auth-page {
  margin: 0;
  padding: 0;
  font-family: var(--sans, 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  background: var(--gradient-primary, linear-gradient(135deg, #c17a66 0%, #a05a48 100%));
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-container {
  width: 100%;
  max-width: 450px;
  padding: 20px;
}

.auth-card {
  background: var(--off-white, #fdf9f4);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(30, 22, 18, 0.3);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo-image {
  width: 300px !important;
}

.auth-logo {
  font-size: 32px;
  font-weight: 700;
  color: var(--rose, #c17a66);
  margin-bottom: 8px;
}

.auth-logo-image {
  display: block;
  max-width: min(280px, 100%);
  max-height: 64px;
  width: auto;
  height: auto;
  margin: 0 auto 10px;
  object-fit: contain;
}

.auth-tagline {
  font-size: 16px;
  color: var(--muted, #8c6e62);
  font-style: italic;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--mid, #5a4438);
  font-size: 14px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border, rgba(180, 140, 120, 0.18));
  background: var(--off-white, #fdf9f4);
  border-radius: 10px;
  font-size: 15px;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.password-input-wrapper {
  position: relative;
  display: block;
}

.password-input-wrapper input {
  padding-right: 46px;
}

.password-toggle-btn {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #7f766e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  cursor: pointer;
}

.password-toggle-btn:hover {
  color: #5f5551;
  background: rgba(193, 122, 102, 0.12);
}

.password-toggle-btn:focus-visible {
  outline: 2px solid rgba(193, 122, 102, 0.7);
  outline-offset: 1px;
}

.password-toggle-btn .icon {
  width: 1.15rem;
  height: 1.15rem;
}

.password-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.password-toggle-icon.hidden {
  display: none;
}

.form-group input:focus {
  outline: none;
  border-color: var(--rose, #c17a66);
  box-shadow: 0 0 0 3px rgba(193, 122, 102, 0.14);
}

.btn-primary {
  width: 100%;
  padding: 14px;
  background: var(--gradient-primary, linear-gradient(135deg, #c17a66 0%, #a05a48 100%));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(160, 90, 72, 0.34);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-divider {
  text-align: center;
  margin: 20px 0;
  color: var(--light, #b89888);
  font-size: 14px;
  position: relative;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--border, rgba(180, 140, 120, 0.18));
}

.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.btn-magic {
  width: 100%;
  padding: 14px;
  background: #fff;
  color: var(--rose, #c17a66);
  border: 1px solid var(--rose, #c17a66);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-magic:hover {
  background: var(--parchment, #f2ebe0);
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted, #8c6e62);
}

.auth-footer a {
  color: var(--rose, #c17a66);
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-message {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  font-weight: 500;
}

.auth-message.hidden {
  display: none;
}

.auth-message.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.auth-message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

@media (max-width: 768px) {
  .auth-card {
    padding: 30px 24px;
  }
}

/* OAuth */
.oauth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0 14px;
}

.oauth-divider::before,
.oauth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border, rgba(180, 140, 120, 0.18));
}

.oauth-divider span {
  padding: 0 12px;
  font-size: 13px;
  color: var(--muted, #8c6e62);
  font-weight: 400;
}

.oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-oauth {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border, rgba(180, 140, 120, 0.18));
  background: var(--off-white, #fdf9f4);
  color: var(--deep, #1e1612);
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--sans, 'Outfit', sans-serif);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-oauth:hover {
  background: var(--parchment, #f2ebe0);
  border-color: rgba(193, 122, 102, 0.3);
  transform: translateY(-1px);
}

.btn-oauth:active {
  transform: translateY(0);
}

.oauth-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-apple {
  color: var(--deep, #1e1612);
}
