/* Existing Auth Modal Styles */
.login-content {
  max-width: 400px;
  width: 90%;
  margin: 15dvh auto;
  padding: 2rem;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Close Button (Updated) */
.close-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s;
  z-index: 10;
}

.close-modal:hover {
  color: var(--accent-color);
  transform: scale(1.1);
}

.login-content h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-size: 1.5rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: opacity 0.3s ease;
}

.auth-form.hidden {
  display: none;
  opacity: 0;
}

.auth-form.active {
  opacity: 1;
}

.auth-input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05); /* Glassy Input */
  color: var(--text-main);
  font-size: 1rem;
  transition: all 0.2s;
  font-family: var(--font-main);
}

.auth-input:focus {
  outline: none;
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.1);
}

/* Password Wrapper for Eye Icon */
.password-wrapper {
  position: relative;
  width: 100%;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 2px;
  opacity: 0.6;
  transition: opacity 0.2s;
  z-index: 10;
}

.toggle-password:hover {
  opacity: 1;
}

.auth-submit {
  margin-top: 0.5rem;
  padding: 12px;
  font-weight: 600;
}

/* Hide Native Browser Password Toggles */
input::-ms-reveal,
input::-ms-clear {
  display: none;
}
input::-webkit-credentials-auto-fill-button {
  visibility: hidden;
  display: none !important;
  pointer-events: none;
  position: absolute;
  right: 0;
}

.auth-forgot-pw {
  text-align: right;
  margin-top: -10px;
  margin-bottom: 15px;
  font-size: 0.85rem;
  position: relative;
  z-index: 5;
}

.auth-forgot-pw a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.auth-forgot-pw a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.auth-switch {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

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

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

.error-msg {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 10px;
  border-radius: 8px;
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
}

/* Account Actions in Menu */
.account-actions {
  padding: 0 1rem 0.5rem 1rem;
}

.full-width {
  width: 100%;
}

.user-greeting {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  text-align: center;
  font-weight: 500;
}

.btn-danger.small {
  padding: 6px 12px;
  font-size: 0.85rem;
}

/* Auth Button Authentication State */
#btn-auth.authenticated .nav-icon {
  position: relative;
}

#btn-auth.authenticated .nav-icon::after {
  content: "";
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 8px;
  height: 8px;
  background-color: #10b981; /* Online Green */
  border-radius: 50%;
  border: 1px solid var(--bg-paper);
}
/* Modal Confirm Button Redesign */
#btn-confirm-pwd {
  background: var(--accent-color);
  color: white;
  border-radius: 12px;
  padding: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(var(--accent-rgb), 0.3);
  border: none;
}

#btn-confirm-pwd:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(var(--accent-rgb), 0.4);
  filter: brightness(1.1);
}

#btn-confirm-pwd:disabled {
  background: var(--text-muted);
  transform: none;
  cursor: not-allowed;
  box-shadow: none;
}

/* Dark Mode override for high contrast on bright accent */
body.dark-mode #btn-confirm-pwd {
  color: #1e293b; /* Dark Slate to contrast with Golden Orange */
}

/* Google Login Button */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 12px;
  border-radius: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  margin-top: 0.5rem;
}

.btn-google:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

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

.google-icon {
  width: 18px;
  height: 18px;
}

/* Auth Divider */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--glass-border);
  opacity: 0.5;
}

.auth-divider:not(:empty)::before {
  margin-right: 1.5em;
}

.auth-divider:not(:empty)::after {
  margin-left: 1.5em;
}

/* Registration Success Modal specific styles */
.verification-prompt-msg {
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  color: var(--text-main);
}

.verification-benefits {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.verification-benefits h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #f59e0b;
}

.verification-benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.verification-benefits li {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.verification-benefits li::before {
  content: "✅";
  font-size: 0.8rem;
}
