* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-blue: #0f63dc;
  --primary-indigo: #0b4fc2;
  --primary-cyan: #2ca8ff;
  --ink-900: #111827;
  --text-gray: #6b7280;
  --border-gray: #e5e7eb;
  --white: #ffffff;
  --font-sans: 'Manrope', 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Manrope', sans-serif;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html, body {
  height: 100%;
  width: 100%;
}

body {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 50%, #d1d5db 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-sans);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(15, 99, 220, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(44, 168, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

#authRoot {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.auth-wrapper {
  width: 100%;
  max-width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-card {
  width: 100%;
  background: var(--white);
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(0, 0, 0, 0.05);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.mainHeading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin-bottom: 8px;
}

.subHeading {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-gray);
  line-height: 1.5;
}

.otp-email-display {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-gray);
}

.otp-email-display span {
  color: var(--ink-900);
  font-weight: 700;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-900);
}

.password-label-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.password-label-wrapper label {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-900);
}

.forgot-password {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-blue);
  text-decoration: none;
  transition: all 0.2s ease;
}

.forgot-password:hover {
  text-decoration: underline;
  color: var(--primary-indigo);
}

.password-input-wrapper {
  display: flex;
  align-items: center;
  position: relative;
}

.password-input-wrapper input {
  width: 100%;
  padding: 10px 40px 10px 12px;
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--white);
  transition: all 0.2s ease;
}

.password-input-wrapper input::placeholder {
  color: #9ca3af;
}

.password-input-wrapper input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(15, 99, 220, 0.1);
}

.password-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--text-gray);
  transition: all 0.2s ease;
  padding: 0;
}

.password-toggle:hover {
  color: var(--ink-900);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--white);
  transition: all 0.2s ease;
}

input[type="email"]::placeholder,
input[type="password"]::placeholder {
  color: #9ca3af;
}

input[type="email"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(15, 99, 220, 0.1);
}

input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--white);
  transition: all 0.2s ease;
}

input[type="text"]::placeholder {
  color: #9ca3af;
}

input[type="text"]:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(15, 99, 220, 0.1);
}

.otp-form input[name="otp"] {
  text-align: center;
  letter-spacing: 0.35em;
  font-weight: 700;
  font-size: 16px;
}

.otp-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.otp-box {
  width: 45px;
  height: 50px;
  padding: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  border: 2px solid var(--border-gray);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink-900);
  font-family: 'Courier New', monospace;
  transition: all 0.2s ease;
  caret-color: var(--primary-blue);
}

.otp-box:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(15, 99, 220, 0.1);
}

.otp-box::placeholder {
  color: #d1d5db;
  opacity: 1;
}

.otp-form .auth-footer,
.name-form .auth-footer {
  margin-top: 4px;
}

.otp-form .auth-footer a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 700;
}

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

.resend-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
}

.resend-link:hover {
  text-decoration: underline;
}

.resend-link:disabled {
  color: #9ca3af;
  cursor: not-allowed;
  text-decoration: none;
}

.resend-timer {
  display: inline-block;
  margin-left: 4px;
  color: #ef4444;
  font-weight: 700;
  font-size: 13px;
  min-width: 45px;
}

.resend-timer.hidden {
  display: none;
}

.name-form input[name="name"] {
  font-size: 15px;
}

.checkbox-group {
  gap: 0;
}

/* Checkbox styling */
.checkbox-wrapper-46 input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.checkbox-wrapper-46 .cbx {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.checkbox-wrapper-46 .cbx span:first-child {
  width: 16px;
  height: 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.checkbox-wrapper-46 .cbx span:first-child svg {
  width: 12px;
  height: 12px;
  stroke: var(--white);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.checkbox-wrapper-46 .cbx span:last-child {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-gray);
}

.checkbox-wrapper-46 .cbx:hover span:first-child {
  border-color: var(--primary-blue);
}

.checkbox-wrapper-46 .inp-cbx:checked + .cbx span:first-child {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
}

.checkbox-wrapper-46 .inp-cbx:checked + .cbx span:first-child svg {
  opacity: 1;
}

.auth-button {
  padding: 11px 16px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.primary-button {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #0850c8 100%);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(15, 99, 220, 0.3);
  letter-spacing: 0.3px;
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 99, 220, 0.4);
}

.primary-button:active {
  transform: translateY(0);
}

.primary-button:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

.google-button {
  background: var(--white);
  color: var(--ink-900);
  border: 1.5px solid var(--border-gray);
  box-shadow: var(--shadow-sm);
}

.google-button:hover {
  background: #f9fafb;
  border-color: var(--primary-blue);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.google-button:active {
  transform: translateY(0);
}

.google-button:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

.google-button svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--text-gray);
  font-size: 13px;
  font-weight: 500;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-gray);
}

.auth-footer {
  text-align: center;
  font-size: 14px;
  color: var(--text-gray);
  font-weight: 500;
}

.auth-back-link {
  margin-top: 14px;
  border: none;
  background: transparent;
  color: var(--primary-blue);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
}

.auth-back-link:hover {
  color: var(--primary-indigo);
}

.auth-back-link:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.switch-link {
  color: var(--primary-blue);
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s ease;
}

.switch-link:hover {
  color: var(--primary-indigo);
  text-decoration: underline;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 32px 24px;
    border-radius: 12px;
  }

  .mainHeading {
    font-size: 24px;
  }

  .subHeading {
    font-size: 13px;
  }

  .auth-button {
    font-size: 13px;
    padding: 10px 14px;
  }
}


.register-container .mainHeading {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 4vw, 2.45rem);
  color: var(--ink-900);
  text-align: center;
}

.register-container .subHeading {
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 320px;
  text-align: center;
  color: var(--text-gray);
  margin-top: 4px;
}

.register-container form {
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  width: min(360px, 92%);
  height: fit-content;
  margin-top: 34px;
}

.register-container form label {
  font-weight: 600;
  font-size: 0.92rem;
  color: #244b86;
  margin-bottom: 6px;
  margin-top: 1rem;
}

.register-container input {
  background: var(--white);
  color: var(--ink-900);
  padding: 0.72rem 0.9rem;
  border-radius: 12px;
  outline: none;
  font-size: 0.92rem;
  font-family: var(--font-sans);
  box-shadow: 0 4px 12px rgba(14, 53, 116, 0.08);
  caret-color: var(--primary-blue);
  cursor: text;
  border: 1px solid var(--border-gray);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.register-container input::placeholder {
  color: #93a2b8;
}

.register-container input:focus {
  border-color: rgba(15, 99, 220, 0.58);
  box-shadow: 0 0 0 4px rgba(15, 99, 220, 0.14);
}

.register-container input:focus-visible,
.register-container form button:focus-visible,
.register-container .switchAuth a:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

.register-container form button {
  padding: 0.74rem;
  border-radius: 12px;
  border: none;
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 700;
  cursor: pointer;
  margin-top: 1.6rem;
  letter-spacing: 0.3px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-size: 1rem;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-indigo));
  box-shadow: 0 12px 24px rgba(15, 99, 220, 0.28);
}

.register-container form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(15, 99, 220, 0.34);
}

.register-container form button:active {
  transform: translateY(0);
}

.register-container .switchAuth {
  margin-top: 1.25rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: #4b6288;
}

.register-container .switchAuth a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 700;
}

.register-container .switchAuth a:hover {
  text-decoration: underline;
}

@media (max-width: 960px) {
  body {
    background-position: center;
    justify-content: center;
  }

  .cover {
    display: none;
  }

  .register-container {
    width: 100%;
    min-height: 100vh;
    border-left: none;
  }

  .register-container form {
    width: min(520px, 92%);
    margin-top: 32px;
  }
}

