/* Global Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  /* Clean Modern Palette */
  --primary: #ff6f00; /* Signature Zoosh Orange */
  --primary-hover: #ff8c00;
  --bg-color: #f7f9fc; /* Light Blue-Grey Background */
  --card-bg: #ffffff;
  --text-dark: #1a1a1a;
  --text-gray: #6b7280;
  --border: #e5e7eb;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05),
    0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --radius: 16px;
  --transition: all 0.2s ease-in-out;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  background-image: radial-gradient(
      at 0% 0%,
      rgba(255, 111, 0, 0.03) 0px,
      transparent 50%
    ),
    radial-gradient(
      at 100% 100%,
      rgba(102, 126, 234, 0.03) 0px,
      transparent 50%
    );
  min-height: 100vh;
  margin: 0;
  padding-top: 70px; /* Space for navbar */
  color: var(--text-dark);
}

/* --- Layout --- */
.auth-page-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 70px);
  padding: 20px;
}

.auth-container {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px; /* Slightly wider for modern feel */
  padding: 48px;
  position: relative;
  overflow: hidden;
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Mascot Integration --- */
.mascot-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.mascot-image {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 16px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mascot-image:hover {
  transform: scale(1.1) rotate(5deg);
}

.mascot-bubble {
  background: var(--text-dark);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  position: relative;
  animation: fadeIn 0.5s ease 0.2s forwards;
  opacity: 0;
  transform: translateY(10px);
}

.mascot-bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: var(--text-dark) transparent transparent transparent;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.auth-header h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.auth-header p {
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.5;
}

/* --- Forms --- */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 14px 44px 14px 16px; /* Space for icon */
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
  background: white;
  color: var(--text-dark);
  transition: var(--transition);
  cursor: text;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 111, 0, 0.1);
}

.form-input-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-gray);
  pointer-events: none;
}

.form-input-icon.clickable {
  pointer-events: auto;
  cursor: pointer;
}

.form-input-icon.clickable:hover {
  color: var(--text-dark);
}

.form-hint {
  font-size: 13px;
  color: var(--text-gray);
  margin-top: 6px;
}

/* --- Buttons --- */
.submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--text-dark);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.submit-btn:hover {
  background: black;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.guest-btn {
  background: transparent;
  color: var(--text-gray);
  border: 1.5px solid var(--border);
  margin-top: 12px;
}

.guest-btn:hover {
  background: var(--bg-color);
  color: var(--text-dark);
  border-color: var(--text-dark);
  box-shadow: none;
}

/* --- Utilities --- */
.divider {
  display: flex;
  align-items: center;
  color: var(--text-gray);
  font-size: 13px;
  margin: 32px 0;
}

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

.divider span {
  padding: 0 16px;
}

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

.auth-footer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

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

/* --- Alerts --- */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.alert-error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.alert-success {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #6ee7b7;
}

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Checkbox --- */
.checkbox-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.forgot-link {
  font-size: 14px;
  color: var(--text-gray);
  font-weight: 500;
  text-decoration: none;
}

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

/* --- Verification Inputs --- */
.code-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 24px 0;
}

.code-input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: white;
  transition: var(--transition);
}

.code-input:focus {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 111, 0, 0.15);
}

/* Mobile Tweaks */
@media (max-width: 480px) {
  .auth-container {
    padding: 32px 24px;
    box-shadow: none; /* Flatter on mobile */
    background: transparent;
  }
}
