/* ===== AUTH LAYOUT ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px 48px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: transparent;
  border-radius: 32px;
  padding: 32px 28px 36px;
  box-shadow: none;
  backdrop-filter: none;
}

.auth-title {
  margin: 0 0 64px;
  font-size: clamp(26px, 5vw,32px);
  line-height: 1.2;
  font-weight: 400;
  text-align: center;
  color: var(--text);
}

.auth-form {
  display: grid;
  gap: 18px;
  width: 100%;
}

/* ===== FIELDS ===== */
.field {
  display: grid;
  gap: 6px;
  width: 100%;
}

.field-label,
.field label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: #8181a5;
  font-weight: 400;
  margin-left: 12px;
}

.field-input,
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 0 8px 0 12px;
  border: 1px solid #e7edf7;
}

.phone-wrap {
  gap: 8px;
  padding-left: 6px;
}

.phone-prefix {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 6px;
  border-right: 1px solid #e7edf7;
  font-weight: 700;
  font-size: 14px;
  color: #111827;
  white-space: nowrap;
}

.phone-flag {
  display: inline-flex;
  width: 20px;
  height: 14px;
  border-radius: 3px;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.phone-input {
  border: none;
  padding-left: 4px;
}

.field input {
  width: 100%;
  height: 48px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.field input::placeholder {
  color: rgba(75, 85, 99, 0.85);
  font-weight: 500;
}

.field input:focus {
  outline: none;
}

.input {
  width: 100%;
  max-width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #e7edf7;
  border-radius: var(--radius-lg);
  font: 600 14px/1.35 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.input::placeholder {
  color: rgba(75, 85, 99, 0.85);
  font-weight: 500;
}

.input:focus,
.input:focus-visible {
  border-color: var(--outline);
}

.input-wrap .input {
  border: none;
  background: transparent;
  padding: 0 12px 0 4px;
}

.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  box-shadow: 0 0 0 1000px #fff inset;
  font: 500 16px/1.4 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif !important;
  letter-spacing: 0;
}

.icon-btn,
.password-toggle {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #495060;
  cursor: pointer;
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
}

.password-toggle img {
  width: 20px;
  height: 20px;
  display: block;
}

/* ===== LINKS ===== */
.auth-links,
.form__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 2px;
}

.link-btn,
.link-button {
  background: none;
  border: none;
  color: #0f172a;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
  padding: 6px 0;
}

.link-btn:hover,
.link-button:hover {
  color: #111827;
}

.auth-actions {
  display: grid;
  gap: 16px;
  margin-top: 48px;
}

/* ===== BUTTONS ===== */
.btn {
  height: 48px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 700;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.12s ease, opacity 0.1s ease, background 0.12s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
}

.btn:active {
  transform: translateY(1px);
}

.btn[disabled] {
  opacity: 0.75;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--outline);
}

.btn-google {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #e5e7eb;

}

.btn-google:hover {
  background: #ffffff;
  border-color: #d1d5db;
}

.btn__icon {
  width: 22px;
  height: 22px;
  display: inline-block;
}

.btn-block {
  width: 100%;
}

.google-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, #4285f4 0%, #34a853 50%, #fbbc05 75%, #ea4335 100%);
}

.auth-error,
.form__message {
  min-height: 20px;
  margin: 6px 4px 0;
  color: #dc2626;
  font-size: 14px;
  text-align: center;
}

.auth-error:empty,
.form__message:empty {
  display: none;
  margin: 0;
  min-height: 0;
}

/* Fallback styles for old welcome layout (dashboard uses .welcome) */
.welcome {
  min-height: 100vh;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  background: #ffffff;
}

.welcome-title {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 16px;
}
