@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --auth-bg-start: #f3f4f6;
  --auth-bg-end: #e2e8f0;
  --auth-card-bg: #ffffff;
  --auth-text-primary: #111827;
  --auth-text-secondary: #4b5563;
  --auth-border: #d1d5db;
  --auth-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
  --auth-radius: 16px;
  --card-w-min: 340px;
  --card-w-max: 520px;
  --card-w: clamp(var(--card-w-min), 36vw, var(--card-w-max));
  --card-h-min: 460px;
  --card-h-max: 560px;
  --card-h: clamp(var(--card-h-min), 36vw, var(--card-h-max));
  --card-radius: 18px;
  --card-pad: 28px;
  --card-gap: 14px;
}

.auth-notify-body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 6vw, 3rem);
  background-color: #eef2ff;
  background-image: linear-gradient(145deg, #eef2ff 0%, #f8fafc 50%, #e0f2fe 100%);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--auth-text-primary);
  overflow-y: auto;
}

.auth-notify-wrapper {
  width: 100%;
  max-width: var(--card-w);
}

.auth-register-page.auth-notify-body {
  align-items: flex-start;
  justify-content: center;
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.auth-register-page .app-card {
  min-height: auto;
  margin-block: 0;
}

.auth-register-page .auth-notify-card {
  margin-bottom: clamp(3rem, 8vw, 5rem);
}

.auth-register-page .auth-notify-form {
  gap: var(--card-gap);
}

.app-card {
  width: var(--card-w);
  min-height: var(--card-h);
  margin-inline: auto;
  background: var(--auth-card-bg);
  border-radius: var(--card-radius);
  padding: var(--card-pad);
  box-shadow: 0 8px 28px rgba(16, 24, 40, 0.08);
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
}

.auth-notify-card {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
}

.auth-notify-header {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-align: center;
}

.auth-notify-header h1 {
  margin: 0;
  font-size: clamp(1.85rem, 5vw, 2.2rem);
  font-weight: 700;
  color: var(--auth-text-primary);
}

.auth-notify-header p,
.app-card .subtext {
  margin: 0 0 14px;
  text-align: center;
  color: #475467;
  line-height: 1.35;
  font-size: 0.95rem;
}

.form-message {
  display: none;
  border-left: 4px solid rgba(248, 113, 113, 0.65);
  background: rgba(254, 226, 226, 0.7);
  color: #7f1d1d;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.45;
}

.form-message.success {
  border-left-color: rgba(52, 211, 153, 0.65);
  background: rgba(209, 250, 229, 0.7);
  color: #065f46;
}

.auth-notify-form {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
}

.app-card .stack {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
}

.app-card .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--card-gap);
}

.app-card .actions {
  margin-top: 12px;
}

.app-card button:not(.link-action),
.app-primary-btn {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 0;
  background: #3b82f6;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
}

.app-card button:not(.link-action):hover,
.app-primary-btn:hover {
  background: #2563eb;
}

.auth-notify-form label {
  font-weight: 600;
  color: var(--auth-text-primary);
}

.auth-notify-form .input-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--auth-text-secondary);
}

.auth-notify-form input,
.auth-notify-form textarea {
  width: 100%;
  padding: 0.72rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--auth-border);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #ffffff;
}

.auth-notify-form textarea {
  resize: vertical;
  min-height: 120px;
}

.auth-notify-form input:focus,
.auth-notify-form textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.input-with-action {
  position: relative;
}

.input-with-action input {
  padding-right: 4.3rem;
}

.link-action {
  position: absolute;
  top: 50%;
  right: 0.9rem;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: #2563eb;
  font-weight: 600;
  cursor: pointer;
}

.link-action:hover {
  color: #1d4ed8;
}

.auth-notify-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: -0.25rem;
}

.auth-notify-link {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.auth-notify-link:hover {
  text-decoration: underline;
}

.auth-notify-sso {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
}

.auth-notify-divider {
  position: relative;
  text-align: center;
  color: #6b7280;
  font-size: 0.9rem;
}

.auth-notify-divider::before,
.auth-notify-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: rgba(209, 213, 219, 0.8);
}

.auth-notify-divider::before {
  left: 0;
}

.auth-notify-divider::after {
  right: 0;
}

.auth-notify-divider span {
  display: inline-block;
  padding: 0 0.85rem;
  background: var(--auth-card-bg);
  position: relative;
  z-index: 1;
}

.auth-notify-sso-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-notify-google {
  display: flex;
  justify-content: center;
}

#googleLoginContainer > div,
#googleRegisterContainer > div {
  width: 100% !important;
  display: flex !important;
  justify-content: center;
}

#googleLoginContainer .abcRioButton,
#googleRegisterContainer .abcRioButton {
  width: 100% !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

.auth-notify-footer,
.auth-notify-support,
.auth-notify-secondary,
.auth-notify-terms {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--auth-text-secondary);
}

.auth-notify-footer a,
.auth-notify-secondary a,
.auth-notify-terms a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.auth-notify-footer a:hover,
.auth-notify-secondary a:hover,
.auth-notify-terms a:hover {
  text-decoration: underline;
}

.auth-notify-support {
  font-size: 0.85rem;
}

.auth-notify-support button,
.contact-support-link {
  background: none;
  border: none;
  padding: 0;
  color: #2563eb;
  font-weight: 600;
  cursor: pointer;
  font-size: inherit;
}

.auth-notify-support button:hover,
.contact-support-link:hover {
  text-decoration: underline;
}

.auth-notify-secondary {
  font-size: 0.85rem;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.28);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.loading-overlay .loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  padding: 1.5rem 1.75rem;
  border-radius: 18px;
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.22);
  color: var(--auth-text-primary);
  font-weight: 600;
}

.loading-overlay .loading-spinner i {
  font-size: 1.5rem;
  color: #2563eb;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1024px) {
  .auth-notify-body {
    align-items: center;
    justify-content: center;
    padding-top: clamp(2rem, 6vw, 3.5rem);
    padding-bottom: clamp(2rem, 6vw, 3.5rem);
    padding-left: clamp(1.5rem, 5vw, 2.5rem);
    padding-right: clamp(1.5rem, 5vw, 2.5rem);
    min-height: 100vh;
  }

  .app-card {
    margin-bottom: 0;
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .auth-notify-body {
    align-items: center;
    justify-content: center;
    padding-top: clamp(2rem, 6vw, 3rem);
    padding-bottom: clamp(2rem, 6vw, 3rem);
    padding-left: clamp(1.5rem, 5vw, 2rem);
    padding-right: clamp(1.5rem, 5vw, 2rem);
    min-height: 100vh;
  }

  .app-card {
    width: calc(100% - 0.5rem);
    max-width: calc(100vw - 3.5rem);
    min-height: auto;
    padding: clamp(1.75rem, 5vw, 2.25rem);
    margin-bottom: 0;
    margin-top: 0;
  }

  .app-card .row {
    grid-template-columns: 1fr;
  }

  .auth-notify-wrapper {
    width: 100%;
    max-width: 100%;
  }
}
