[data-theme="light"] {
  --r-label: #4c51bf;
  --acc-hover: #0a1186;
}

[data-theme="dark"] {
  --r-label: #d2b7e7;
  --acc-hover: #9f6ec5;
}

/* Standalone login/register/forgot pages (no app layout theme) */
:root {
  --bottom-theme: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --bg-color: transparent;
}

html {
  overflow-x: hidden;
}

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

.disabled-btn {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

.custom-alert {
  position: relative;
  padding: 15px 20px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.4s ease;
}

.alert-error {
  background-color: #ffe5e5;
  border-left: 6px solid #e63946;
  color: #a4161a;
}

.alert-success {
  background-color: #d4edda;
  border-left: 6px solid #28a745;
  color: #155724;
}

.btn-close {
  position: absolute;
  right: 10px;
  top: 10px;
  background: transparent;
  border: none;
  font-size: 20px;
  opacity: 0.6;
  cursor: pointer;
}

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

.firebase-status {
  padding: 12px 15px;
  border-radius: 8px;
  margin: 10px 0;
  font-size: 14px;
  display: none;
  align-items: center;
  gap: 10px;
}

.firebase-status.active {
  display: flex;
}

.firebase-status.success {
  background-color: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}

.firebase-status.loading {
  background-color: #d1ecf1;
  color: #0c5460;
  border-left: 4px solid #17a2b8;
}

.firebase-status.error {
  background-color: #ffe5e5;
  color: #a4161a;
  border-left: 4px solid #e63946;
}

.spinner {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 1s linear infinite;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #ddd;
}

.divider span {
  padding: 0 10px;
  color: #666;
  font-size: 14px;
}

.google-btn {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s;
  margin-bottom: 20px;
}

.google-btn:hover:not(.disabled-btn) {
  background: #f8f9fa;
  border-color: #4285f4;
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.2);
}

.google-btn img {
  width: 20px;
  height: 20px;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* Back to Home Button */
.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(102, 126, 234, 0.08);
  transition: all 0.3s ease;
  position: absolute;
  top: 20px;
  left: 20px;
}

.back-home-btn:hover {
  background: rgba(102, 126, 234, 0.15);
  transform: translateX(-3px);
}

.back-home-btn:active {
  transform: translateX(-1px);
}
.register-page-wrapper {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  background-color: transparent;
  box-sizing: border-box;
}

.register-container {
  width: 100%;
  max-width: 500px;
  position: relative;
  z-index: 10;
}

.register-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 25px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideInUp 0.8s ease;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.register-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 35px 70px rgba(102, 126, 234, 0.2);
}

/* Header Section */
.register-header {
  background: var(--bottom-theme, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
  padding: 40px 40px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.register-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    );
  opacity: 0.3;
  animation: backgroundShift 15s ease-in-out infinite;
}

.register-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.register-icon i {
  font-size: 2rem;
  color: white;
}

.register-title {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  position: relative;
  z-index: 1;
  letter-spacing: -0.5px;
}

.register-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin: 10px 0 0;
  position: relative;
  z-index: 1;
  font-weight: 400;
}

/* Form Body */
.register-body {
  padding: 40px;
  background-color: transparent;
}

.form-group {
  margin-bottom: 15px;
  position: relative;
  animation: slideInLeft 0.6s ease forwards;
  opacity: 0;
}

.form-group:nth-child(1) {
  animation-delay: 0.1s;
}
.form-group:nth-child(2) {
  animation-delay: 0.2s;
}
.form-group:nth-child(3) {
  animation-delay: 0.3s;
}
.form-group:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.form-label {
  font-weight: 600;
  color: var(--r-label) !important;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.form-label i {
  font-size: 0.9rem;
  color: var(--r-label) !important;
  width: 16px;
  flex-shrink: 0;
}

.input-group {
  position: relative;
}

.form-control {
  border: 2px solid rgba(102, 126, 234, 0.1);
  border-radius: 15px;
  padding: 16px 50px 16px 20px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  position: relative;
  box-sizing: border-box;
}

.form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
  background: white;
  transform: translateY(-1px);
  outline: none;
}

.form-control::placeholder {
  color: #a0aec0;
  transition: all 0.3s ease;
}

/* OTP Input Styling */
.otp-container {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin: 20px 0;
}

.otp-input {
  width: 50px;
  height: 50px;
  border: 2px solid rgba(102, 126, 234, 0.1);
  border-radius: 12px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  color: #4c51bf;
}

.otp-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
  background: white;
  transform: scale(1.05);
  outline: none;
}

.otp-input.filled {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

/* Input Icons */
.input-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #a0aec0;
  transition: all 0.3s ease;
  z-index: 2;
  font-size: 0.9rem;
}

.password-toggle {
  cursor: pointer !important;
}

.password-toggle:hover {
  color: #667eea;
}

/* Register Button */
.register-btn {
  background: var(--bottom-theme, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
  border: none;
  border-radius: 15px;
  padding: 16px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  width: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  margin-top: 15px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.register-btn:disabled {
  background: #a0aec0;
  cursor: not-allowed;
  transform: none;
}

.register-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.1) 100%
  );
  transition: left 0.4s ease;
}

.register-btn:hover:not(:disabled)::before {
  left: 0;
}

.register-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

/* Login Link */
.login-link {
  text-align: center;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.login-link p {
  color: #718096;
  margin: 0;
  font-size: 0.95rem;
}

.forgot-btn {
  color: var(--r-label) !important;
}

.login-redirect {
  color: var(--r-label) !important;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.login-redirect::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.login-redirect:hover::after {
  width: 100%;
}

.login-redirect:hover {
  color: var(--acc-hover) !important;
  text-decoration: none;
}

/* Steps Hidden/Visible */
.step {
  display: none;
}

.step.active {
  display: block;
}

/* Resend OTP */
.resend-otp {
  text-align: center;
  margin-top: 15px;
}

.resend-otp button {
  background: none;
  border: none;
  color: #667eea;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: underline;
  padding: 5px;
}

.resend-otp button:disabled {
  color: #a0aec0;
  cursor: not-allowed;
  text-decoration: none;
}

.timer {
  color: #718096;
  font-size: 0.85rem;
  margin-top: 5px;
}

/* Success/Error Messages */
.message {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.message.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #059669;
}

.message.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #dc2626;
}

/* Responsive Design */
@media (max-width: 768px) {
  .register-page-wrapper {
    padding: 16px;
    align-items: center;
    padding-top: 16px;
  }

  .register-container {
    max-width: 100%;
    margin-top: 0;
  }

  .register-header {
    padding: 30px 20px 25px;
  }

  .register-title {
    font-size: 1.6rem;
  }

  .register-body {
    padding: 25px 20px;
  }

  .otp-container {
    gap: 10px;
  }

  .otp-input {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .otp-container {
    gap: 8px;
  }

  .otp-input {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}
.register-page-wrapper {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  box-sizing: border-box;
}

.register-container {
  width: 100%;
  max-width: 500px;
  position: relative;
  z-index: 10;
}

.register-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 25px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideInUp 0.8s ease;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.register-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 35px 70px rgba(102, 126, 234, 0.2);
}

/* Header Section */
.register-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 40px 40px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.register-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    );
  opacity: 0.3;
  animation: backgroundShift 15s ease-in-out infinite;
}

.register-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.register-icon i {
  font-size: 2rem;
  color: white;
}

.register-title {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  position: relative;
  z-index: 1;
  letter-spacing: -0.5px;
}

.register-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin: 10px 0 0;
  position: relative;
  z-index: 1;
  font-weight: 400;
}

/* Form Body */
.register-body {
  padding: 40px;
}

.form-group {
  color: #6c6c6d;
  margin-bottom: 15px;
  position: relative;
}

.form-label {
  font-weight: 600;
  color: #4c51bf;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.form-label i {
  font-size: 0.9rem;
  color: #667eea;
  width: 16px;
  flex-shrink: 0;
}

.form-control {
  border: 2px solid rgba(102, 126, 234, 0.1);
  border-radius: 15px;
  padding: 16px 50px 16px 20px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  position: relative;
  box-sizing: border-box;
}

.form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
  background: white;
  transform: translateY(-1px);
  outline: none;
}

.form-control::placeholder {
  color: #a0aec0;
  transition: all 0.3s ease;
}

.form-control:focus::placeholder {
  transform: translateY(-3px);
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Input Icons */
.input-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #a0aec0;
  transition: all 0.3s ease;
  z-index: 2;
  font-size: 0.9rem;
}

.form-control:focus + .input-icon.validation-icon {
  color: #667eea;
}

.password-toggle {
  cursor: pointer !important;
}

.password-toggle:hover {
  color: #667eea;
}

/* Validation Icons */
.validation-icon.valid {
  color: #10b981 !important;
}

.validation-icon.invalid {
  color: #ef4444 !important;
}

/* Error Messages */
.error-message {
  color: #e53e3e;
  font-size: 0.85rem;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: shake 0.5s ease-in-out;
}

.error-message::before {
  content: "⚠";
  font-size: 0.8rem;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* Register Button */
.register-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 15px;
  padding: 16px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  width: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  margin-top: 15px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.register-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.1) 100%
  );
  transition: left 0.4s ease;
}

.register-btn:hover::before {
  left: 0;
}

.register-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.register-btn:active {
  transform: translateY(-1px);
}

/* Loading State */
.register-btn.loading {
  color: transparent !important;
}

.register-btn.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid transparent;
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Login Link */
.login-link {
  text-align: center;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.login-link p {
  color: #718096;
  margin: 0;
  font-size: 0.95rem;
}

.login-redirect {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.login-redirect::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.login-redirect:hover::after {
  width: 100%;
}

.login-redirect:hover {
  color: var(--acc-hover) !important;
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .register-page-wrapper {
    padding: 16px;
    align-items: center;
    padding-top: 16px;
  }

  .register-container {
    max-width: 100%;
    margin-top: 0;
  }

  .register-card {
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }

  .register-header {
    padding: 30px 20px 25px;
  }

  .register-title {
    font-size: 1.6rem;
  }

  .register-subtitle {
    font-size: 0.9rem;
  }

  .register-body {
    padding: 25px 20px;
  }

  .form-control {
    padding: 14px 45px 14px 16px;
    font-size: 0.95rem;
  }

  .register-btn {
    padding: 14px 20px;
    font-size: 1rem;
  }

  .login-link {
    margin-top: 20px;
    padding-top: 20px;
  }
}

@media (max-width: 480px) {
  .register-page-wrapper {
    padding: 10px;
    padding-top: 20px;
  }

  .register-header {
    padding: 25px 15px 20px;
  }

  .register-icon {
    width: 60px;
    height: 60px;
  }

  .register-icon i {
    font-size: 1.5rem;
  }

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

  .register-subtitle {
    font-size: 0.85rem;
  }

  .register-body {
    padding: 20px 15px;
  }

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

  .form-label {
    font-size: 0.9rem;
  }

  .form-control {
    padding: 12px 40px 12px 14px;
    font-size: 0.9rem;
    border-radius: 12px;
  }

  .register-btn {
    font-size: 0.95rem;
    padding: 14px 16px;
    border-radius: 12px;
  }

  .login-link p {
    font-size: 0.85rem;
  }
}

/* Form Field Animation */
.form-group {
  animation: slideInLeft 0.6s ease forwards;
  opacity: 0;
}

.form-group:nth-child(1) {
  animation-delay: 0.1s;
}
.form-group:nth-child(2) {
  animation-delay: 0.2s;
}
.form-group:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Success State Animation */
.form-control.success {
  border-color: #10b981;
  animation: successPulse 0.6s ease;
}

@keyframes successPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}
/* Add this to your CSS file - Updated Input Group Styling */

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

/* Style for the eye icons (FaEye/FaEyeSlash) */
.input-group svg {
  position: absolute;
  right: 15px;
}

.input-group svg:hover {
  color: #667eea;
}

/* Make sure the input doesn't overlap with the icon */
.input-group .form-control {
  padding-right: 50px !important;
}

/* Alternative: If using icon wrapper/button */
.password-toggle-btn {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #a0aec0;
  transition: all 0.3s ease;
  padding: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.password-toggle-btn:hover {
  color: #667eea;
}

/* ── Auth form UX (error slots, required markers, stable toggles) ── */

.form-req {
  color: #ef4444;
  font-weight: 800;
}

.form-error-slot {
  min-height: 22px;
  display: flex;
  align-items: flex-start;
  margin-top: 6px;
}

.form-error-slot .form-error {
  margin: 0;
  width: 100%;
}

.form-error-slot:empty {
  min-height: 22px;
}

.form-error {
  display: none;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
  color: #dc2626;
}

.form-error.show,
.form-error.form-success.show {
  display: flex;
}

.form-error i {
  margin-top: 2px;
  flex-shrink: 0;
  font-size: 0.72rem;
  color: #ef4444;
}

.form-error.form-success {
  color: #059669;
}

.form-error.form-success i {
  color: #10b981;
}

.auth-message-reserve {
  min-height: 22px;
  margin-bottom: 16px;
}

.auth-message-reserve:empty {
  min-height: 22px;
}

.password-toggle-btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.password-toggle-btn:active,
.password-toggle-btn:focus {
  transform: translateY(-50%);
  outline: none;
}

.password-toggle-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
}

.password-toggle-btn i {
  pointer-events: none;
  line-height: 1;
  font-size: 0.9rem;
}

.password-toggle-btn [data-eye="show"] {
  display: none;
}

.password-toggle-btn [data-eye="hide"] {
  display: block;
}

.password-toggle-btn.is-visible [data-eye="show"] {
  display: block;
}

.password-toggle-btn.is-visible [data-eye="hide"] {
  display: none;
}

.input-group .form-control[type="password"],
.input-group .form-control[type="text"] {
  padding-right: 48px;
}

/* Login / Register — compact layout, fits one screen without scroll */
body.auth-compact-page,
body.auth-login-page {
  height: 100dvh;
  overflow: hidden;
}

body.auth-compact-page .register-page-wrapper,
body.auth-login-page .register-page-wrapper {
  height: 100dvh;
  padding: 10px 12px;
  box-sizing: border-box;
}

body.auth-compact-page .register-card:hover,
body.auth-login-page .register-card:hover {
  transform: none;
}

body.auth-compact-page .register-header,
body.auth-login-page .register-header {
  padding: 22px 24px 16px;
}

body.auth-compact-page .register-icon,
body.auth-login-page .register-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 10px;
}

body.auth-compact-page .register-icon img,
body.auth-login-page .register-icon img {
  width: 48px;
  height: auto;
}

body.auth-compact-page .register-icon i,
body.auth-login-page .register-icon i {
  font-size: 1.35rem;
}

body.auth-compact-page .register-title,
body.auth-login-page .register-title {
  font-size: 1.55rem;
}

body.auth-compact-page .register-subtitle,
body.auth-login-page .register-subtitle {
  font-size: 0.9rem;
  margin: 4px 0 0;
}

body.auth-compact-page .register-body,
body.auth-login-page .register-body {
  padding: 20px 24px 18px;
}

body.auth-compact-page .form-label,
body.auth-login-page .form-label {
  margin-bottom: 6px;
  font-size: 0.9rem;
}

body.auth-compact-page .form-control,
body.auth-login-page .form-control {
  padding: 11px 44px 11px 14px;
  font-size: 0.95rem;
  border-radius: 12px;
}

body.auth-compact-page .form-error-slot,
body.auth-compact-page .form-error-slot:empty,
body.auth-login-page .form-error-slot,
body.auth-login-page .form-error-slot:empty {
  min-height: 18px;
  margin-top: 4px;
}

body.auth-compact-page .register-btn,
body.auth-login-page .register-btn {
  margin-top: 6px;
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: 12px;
}

body.auth-compact-page .divider,
body.auth-login-page .divider {
  margin: 10px 0;
}

body.auth-compact-page .google-btn,
body.auth-login-page .google-btn {
  padding: 10px;
  margin-bottom: 10px;
  font-size: 14px;
}

body.auth-compact-page .login-link,
body.auth-login-page .login-link {
  margin-top: 14px;
  padding-top: 14px;
}

body.auth-compact-page .login-link p,
body.auth-login-page .login-link p {
  font-size: 0.88rem;
}

body.auth-compact-page .form-group--row,
body.auth-login-page .form-group--row {
  margin-bottom: 12px;
}

@media (max-height: 740px) {
  body.auth-compact-page .register-header,
  body.auth-login-page .register-header {
    padding: 16px 20px 12px;
  }

  body.auth-compact-page .register-icon,
  body.auth-login-page .register-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
  }

  body.auth-compact-page .register-icon img,
  body.auth-login-page .register-icon img {
    width: 40px;
  }

  body.auth-compact-page .register-icon i,
  body.auth-login-page .register-icon i {
    font-size: 1.15rem;
  }

  body.auth-compact-page .register-title,
  body.auth-login-page .register-title {
    font-size: 1.35rem;
  }

  body.auth-compact-page .register-body,
  body.auth-login-page .register-body {
    padding: 16px 20px 14px;
  }

  body.auth-compact-page .form-group,
  body.auth-login-page .form-group {
    margin-bottom: 12px;
  }
}