/* ============================================
   PRAJAPATI ELECTRICAL — Auth Page Styles
   ============================================ */

/* ── Auth Page Layout ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0A1628 0%, #1E3A5F 50%, #0A1628 100%);
  position: relative;
  overflow: hidden;
  padding: 24px;
  font-family: 'Inter', sans-serif;
}

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

/* ── Background Effects ── */
.auth-bg-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.auth-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.auth-glow-1 {
  width: 500px;
  height: 500px;
  background: rgba(255, 107, 0, 0.2);
  top: -150px;
  right: -100px;
  animation: auth-float 8s ease-in-out infinite;
}

.auth-glow-2 {
  width: 400px;
  height: 400px;
  background: rgba(30, 58, 95, 0.5);
  bottom: -100px;
  left: -100px;
  animation: auth-float 10s ease-in-out infinite reverse;
}

.auth-glow-3 {
  width: 300px;
  height: 300px;
  background: rgba(255, 140, 56, 0.1);
  top: 50%;
  left: 30%;
  animation: auth-float 12s ease-in-out infinite;
}

@keyframes auth-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.05); }
}

/* ── Auth Card ── */
.auth-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  animation: auth-fade-in 0.6s ease both;
}

@keyframes auth-fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.auth-logo a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.auth-logo img {
  height: 52px;
  width: auto;
  border-radius: 50%;
}

.auth-logo span {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.auth-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 40px 36px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.auth-card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 8px;
}

.auth-card .auth-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

/* ── Tab Toggle ── */
.auth-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  background: none;
  border: none;
  border-radius: 11px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.auth-tab.active {
  background: linear-gradient(135deg, #FF6B00, #FF8C38);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 107, 0, 0.3);
}

.auth-tab:not(.active):hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ── Forms ── */
.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
  animation: auth-slide-in 0.3s ease;
}

@keyframes auth-slide-in {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.form-group input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #fff;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: all 0.3s ease;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-group input:focus {
  border-color: #FF6B00;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

.form-group .input-icon-wrap {
  position: relative;
}

.form-group .input-icon-wrap i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

.form-group .input-icon-wrap input {
  padding-left: 44px;
}

.form-group .password-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 4px;
  transition: color 0.3s;
}

.form-group .password-toggle:hover {
  color: rgba(255, 255, 255, 0.8);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Submit Button ── */
.auth-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #FF6B00, #FF8C38);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.3);
}

.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 107, 0, 0.45);
}

.auth-submit:active {
  transform: scale(0.98);
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-submit .spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: none;
}

.auth-submit.loading .spinner {
  display: inline-block;
}

.auth-submit.loading .btn-text {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Forgot Password ── */
.auth-forgot {
  text-align: right;
  margin-top: -8px;
  margin-bottom: 20px;
}

.auth-forgot a {
  font-size: 0.85rem;
  color: #FF8C38;
  text-decoration: none;
  transition: color 0.3s;
}

.auth-forgot a:hover {
  color: #FFa850;
  text-decoration: underline;
}

/* ── Divider ── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

/* ── Messages ── */
.auth-message {
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: none;
  align-items: center;
  gap: 10px;
  animation: auth-fade-in 0.3s ease;
}

.auth-message.show {
  display: flex;
}

.auth-message.success {
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #4ade80;
}

.auth-message.error {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #f87171;
}

.auth-message.info {
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #60a5fa;
}

/* ── Footer Link ── */
.auth-footer {
  text-align: center;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.auth-footer a {
  color: #FF8C38;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}

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

/* ── Back to Home ── */
.auth-back {
  text-align: center;
  margin-top: 20px;
}

.auth-back a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s;
}

.auth-back a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ── Reset Password View ── */
.auth-reset-view {
  display: none;
}

.auth-reset-view.active {
  display: block;
  animation: auth-slide-in 0.3s ease;
}

.auth-reset-view h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  color: #fff;
  text-align: center;
  margin-bottom: 8px;
}

.auth-reset-view p {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.auth-reset-back {
  background: none;
  border: none;
  color: #FF8C38;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
  transition: color 0.3s;
}

.auth-reset-back:hover {
  color: #FFa850;
}

/* ── Responsive ── */
@media (max-width: 520px) {
  .auth-card {
    padding: 28px 20px;
  }

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

  .auth-logo span {
    font-size: 1.2rem;
  }

  .auth-card h2 {
    font-size: 1.5rem;
  }
}
