/* ============================================================
   AUTH.CSS v6 — px units, bumped font, gradient bg
   Target: fit entire form in one screen ≤ 800px height
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Page shell — gradient mesh background ── */
.auth-root {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;

  /* Gradient mesh background */
  background-color: #dbeafe;
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(59, 130, 246, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(99, 102, 241, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 60% 30%, rgba(147, 197, 253, 0.2) 0%, transparent 50%);
}

/* ── Card ── */
.auth-card {
  background: #fff;
  border-radius: 14px;
  box-shadow:
    0 1px 4px rgba(15, 23, 42, 0.07),
    0 8px 28px rgba(15, 23, 42, 0.09);
  width: 100%;
  max-width: 400px;
  padding: 28px 32px 24px;
}

/* ── Logo row ── */
.auth-card__logo {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}

.auth-card__logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-card__logo-icon svg {
  width: 16px;
  height: 16px;
  color: #fff;
  display: block;
}

.auth-card__logo-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.1px;
}

.auth-card__logo-divider {
  width: 100%;
  height: 1px;
  background: #f0f4f8;
  margin-bottom: 18px;
}

/* ── Titles ── */
.auth-card__title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.3px;
  line-height: 1.2;
  margin-bottom: 3px;
}

.auth-card__subtitle {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
  margin-bottom: 18px;
}

/* ── Fields ── */
.auth-field {
  margin-bottom: 12px;
}

.auth-field>label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
  line-height: 1;
}

.auth-field>label .req {
  color: #ef4444;
  margin-left: 2px;
  font-weight: 400;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
  display: flex;
  align-items: center;
  line-height: 0;
}

.auth-input-icon svg {
  width: 15px;
  height: 15px;
  display: block;
}

.auth-input {
  width: 100%;
  height: 38px;
  border: 1.5px solid #e2e8f0;
  border-radius: 7px;
  padding: 0 36px 0 34px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.auth-input::placeholder {
  color: #94a3b8;
  font-size: 14px;
}

.auth-input.no-icon {
  padding-left: 11px;
}

.auth-input:focus {
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.09);
}

.auth-input.border--error {
  border-color: #ef4444 !important;
  background: #fef2f2;
}

.auth-input.border--error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08) !important;
}

.auth-eye-btn {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  display: flex;
  align-items: center;
  padding: 2px;
  transition: color 0.14s;
  line-height: 0;
}

.auth-eye-btn:hover {
  color: #2563eb;
}

.auth-eye-btn svg {
  width: 15px;
  height: 15px;
  display: block;
}

.auth-field-error {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: #ef4444;
  font-weight: 500;
}

/* ── Checkbox + link row ── */
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.auth-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #475569;
  font-weight: 500;
  user-select: none;
}

.auth-checkbox-label input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #2563eb;
  cursor: pointer;
  flex-shrink: 0;
}

.auth-link {
  font-size: 13px;
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.14s;
}

.auth-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* ── Submit button ── */
.auth-submit-btn {
  width: 100%;
  height: 40px;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  color: #fff;
  border: none;
  border-radius: 7px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.16s, box-shadow 0.16s;
  letter-spacing: 0.1px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.auth-submit-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.auth-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.auth-submit-btn:active {
  transform: translateY(0);
}

/* ── Divider ── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

/* ── Google button ── */
.auth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 40px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 7px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  text-decoration: none;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.auth-google-btn:hover {
  border-color: #2563eb;
  background: #f8fafc;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  text-decoration: none;
}

.auth-google-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* ── Bottom link ── */
.auth-bottom-link {
  text-align: center;
  font-size: 13px;
  color: #64748b;
  white-space: nowrap;
}

.auth-bottom-link a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.14s;
}

.auth-bottom-link a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* ── Error banner ── */
.auth-alert-error {
  background: #ff0000 !important;
  /* Pure energetic red */
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 100px !important;
  padding: 12px 24px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 24px !important;
  font-size: 14px !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  box-shadow: 0 10px 20px rgba(255, 0, 0, 0.2) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.auth-alert-error svg {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0 !important;
  stroke-width: 3px !important;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .auth-card {
    padding: 22px 18px 20px;
    border-radius: 10px;
  }

  .auth-card__title {
    font-size: 18px;
  }
}

@media (max-width: 380px) {
  .auth-root {
    padding: 16px 10px;
  }
}

/* ── Success banner ── */
.auth-alert-success {
  background: #00ca72 !important;
  /* Vivid vibrant green */
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 100px !important;
  padding: 12px 24px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 24px !important;
  font-size: 14px !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  box-shadow: 0 10px 20px rgba(0, 202, 114, 0.2) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.auth-alert-success svg {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0 !important;
  stroke-width: 3px !important;
}

/* ── Warning banner ── */
.auth-alert-warning {
  background: #ff9f00 !important;
  /* Sharp amber orange */
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 100px !important;
  padding: 12px 24px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 24px !important;
  font-size: 14px !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  box-shadow: 0 10px 20px rgba(255, 159, 0, 0.2) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.auth-alert-warning svg {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0 !important;
  stroke-width: 3px !important;
}

/* ── Customizing Toastr for Auth UI ── */
#toast-container>div {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  opacity: 1 !important;
  border-radius: 50px !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  padding: 12px 24px 12px 50px;
  background-position: 18px center;
  background-size: 20px;
  min-height: 48px;
  display: flex;
  align-items: center;
}

#toast-container>div:hover {
  box-shadow: 0 12px 28px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

#toast-container>.toast-success {
  background-color: #10b981;
  /* Modern emerald */
}

#toast-container>.toast-error {
  background-color: #ef4444;
  /* Modern rose/red */
}

#toast-container>.toast-warning {
  background-color: #f59e0b;
  /* Modern amber */
}

#toast-container>.toast-info {
  background-color: #3b82f6;
  /* Modern blue */
}

.toast-title {
  display: none;
}

.toast-message {
  font-size: 13px;
  color: #fff;
  font-weight: 500;
  line-height: normal;
}

.toast-close-button {
  font-weight: 300;
  font-size: 24px;
  text-shadow: none;
  opacity: 0.7;
  outline: none;
  top: -3px;
  right: -3px;
}

.toast-close-button:hover,
.toast-close-button:focus {
  opacity: 1;
}

#toast-container>div.toast {
  background-image: none !important;
}

/* Enhancing default icons via background positioning */
#toast-container>.toast-success {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E") !important;
}

#toast-container>.toast-error {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E") !important;
}

#toast-container>.toast-warning {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E") !important;
}