/*  AUTHENTICATION PAGES STYLES*/

/* Custom properties for consistent theming across auth pages */
:root {
  --auth-bg: #050816;
  --auth-card-bg: rgba(15, 23, 42, 0.96);
  --auth-card-border: rgba(148, 163, 184, 0.55);
  --auth-primary: #22c55e;
  --auth-primary-soft: rgba(34, 197, 94, 0.12);
  --auth-text: #e5e7eb;
  --auth-muted: #9ca3af;
  --auth-error: #f87171;
  --auth-radius: 18px;
  --auth-shadow: 0 26px 70px rgba(15, 23, 42, 0.9);
}

/* Main container for authentication pages with gradient background */
body.auth-page {
  margin: 0;
  min-height: 100vh;
  font-family: "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Gradient background with blue and green accents */
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.12), transparent 55%),
    #020617;
  color: var(--auth-text);
  display: flex;
  flex-direction: column;
}

/* Main layout wrapper - keeps header fixed like other pages */
.auth-layout {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Main content area - centers the auth card vertically */
.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

/* Wrapper for the authentication card */
.auth-wrapper {
  width: 100%;
  max-width: 430px;
}

/* Main card container with glassmorphism effect */
.auth-card {
  background: var(--auth-card-bg);
  border-radius: var(--auth-radius);
  box-shadow: var(--auth-shadow);
  border: 1px solid var(--auth-card-border);
  padding: 26px 22px 22px;
  backdrop-filter: blur(24px); 
}

/*  Card Header Section  */
/* Header section inside the auth card */
.auth-header {
  margin-bottom: 18px;
}

.auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--auth-primary-soft);
  color: var(--auth-primary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.auth-pill span.emoji {
  font-size: 0.9rem;
}

.auth-title {
  margin: 0 0 6px;
  font-size: 1.6rem;
  font-weight: 800;
}

.auth-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--auth-muted);
}

/*  Form Styles  */
/* Main form container */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e5e7eb;
}

.auth-input {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  padding: 9px 12px;
  font-size: 0.9rem;
  outline: none;
  background: rgba(15, 23, 42, 0.9);
  color: var(--auth-text);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, transform 0.08s ease;
}

.auth-input::placeholder {
  color: #6b7280;
}

.auth-input:focus {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.7);
  background-color: #020617;
  transform: translateY(-0.5px); /* Subtle lift on focus */
}

/*  Button Styles  */
/* Primary authentication button with gradient */
.auth-btn {
  margin-top: 4px;
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #0b1220;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 14px 32px rgba(22, 163, 74, 0.55);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.auth-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.auth-btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 22px rgba(22, 163, 74, 0.5);
}

/*  Message Display  */
/* Container for success/error messages */
.auth-message {
  margin-top: 8px;
  min-height: 18px;
  font-size: 0.85rem;
}

.auth-message.error {
  color: var(--auth-error);
}

.auth-message.success {
  color: #4ade80;
}

/*  Footer Section  */
/* Footer with links */
.auth-footer {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--auth-muted);
  text-align: center;
}

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

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

/*  Responsive Design  */
/* Mobile-specific styles for smaller screens */
@media (max-width: 640px) {
  .auth-main {
    padding: 20px 14px 28px;
  }

  .auth-card {
    padding: 22px 18px 18px;
    border-radius: 16px;
  }

  .auth-title {
    font-size: 1.4rem;
  }
}
