/* ====================================
LOGIN / REGISTER PAGE STYLES
==================================== */

/* ====================================
BODY OVERRIDE FOR AUTH PAGES
=================================== */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  overflow-x: hidden;
}

/* ====================================
AUTH CONTAINER
=================================== */
.auth-container {
  width: 100%;
  max-width: 460px;
  position: relative;
  z-index: 1;
  margin: 80px auto 40px;
  flex: 1;
  padding: 0 1rem;
}

/* ====================================
GLOW EFFECTS (Auth specific)
=================================== */
.auth-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}

.auth-glow.glow-1 {
  width: 400px;
  height: 400px;
  background: var(--glow-green);
  top: -100px;
  right: -100px;
}

.auth-glow.glow-2 {
  width: 350px;
  height: 350px;
  background: var(--glow-gold);
  bottom: -100px;
  left: -100px;
}

/* ====================================
AUTH CARD (Glassmorphism)
=================================== */
.auth-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
  transition: 0.3s;
}

.auth-card:hover {
  border-color: rgba(0, 200, 150, 0.2);
}

/* ====================================
TAB SWITCHER
=================================== */
.auth-tabs {
  display: flex;
  background: var(--glass-bg);
  border-radius: 12px;
  padding: 0.25rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

.auth-tab {
  flex: 1;
  padding: 0.75rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
  transition: 0.3s;
  font-family: "Inter", sans-serif;
}

.auth-tab.active {
  background: var(--gradient-primary);
  color: var(--bg-dark);
  box-shadow: var(--shadow-green);
}

.auth-tab:hover:not(.active) {
  color: var(--white);
}

/* ====================================
FORMS
=================================== */
.auth-form {
  display: none;
  animation: fadeIn 0.4s ease;
}

.auth-form.active {
  display: block;
}

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

.auth-form h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.auth-form .form-subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

/* ====================================
FORM GROUPS
=================================== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--white);
}

.form-group label .required {
  color: var(--danger);
  margin-left: 2px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: 0.3s;
}

.input-wrapper:focus-within {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0, 200, 150, 0.15);
}

.input-wrapper .input-icon {
  padding: 0 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.input-wrapper input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-size: 0.95rem;
  font-family: "Inter", sans-serif;
}

.input-wrapper input::placeholder {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.input-wrapper .toggle-password {
  padding: 0 1rem;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: 0.3s;
  background: none;
  border: none;
  font-size: 1rem;
}

.input-wrapper .toggle-password:hover {
  color: var(--white);
}

/* ====================================
FORM OPTIONS
=================================== */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.form-options .remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
}

.form-options .remember-me input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--glass-bg);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: 0.3s;
}

.form-options .remember-me input[type="checkbox"]:checked {
  background: var(--gradient-primary);
  border-color: var(--secondary);
}

.form-options .remember-me input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--bg-dark);
  font-size: 12px;
  font-weight: 700;
}

.form-options .forgot-password {
  font-size: 0.875rem;
  color: var(--gold);
  transition: 0.3s;
}

.form-options .forgot-password:hover {
  color: var(--premium-gold);
}

/* ====================================
AUTH BUTTONS (Override global btn-primary)
=================================== */
.btn-primary {
  width: 100%;
  padding: 0.9rem;
  border-radius: 12px;
  background: var(--gradient-primary);
  color: var(--bg-dark);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: var(--shadow-green);
  font-family: "Inter", sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 200, 150, 0.3);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary .spinner {
  display: none;
  animation: spin 0.8s linear infinite;
}

.btn-primary.loading .spinner {
  display: inline-block;
}

.btn-primary.loading .btn-text {
  display: none;
}

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

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

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

/* ====================================
SOCIAL LOGIN
=================================== */
.social-login {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.social-btn {
  flex: 1;
  padding: 0.75rem;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  color: var(--white);
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: "Inter", sans-serif;
  font-weight: 500;
}

.social-btn:hover {
  background: var(--card-bg);
  border-color: var(--secondary);
  transform: translateY(-2px);
}

.social-btn.google {
  color: #ea4335;
}
.social-btn.google:hover {
  border-color: #ea4335;
}

.social-btn.facebook {
  color: #1877f2;
}
.social-btn.facebook:hover {
  border-color: #1877f2;
}

/* ====================================
EMAIL VERIFICATION NOTICE
=================================== */
.verification-notice {
  display: none;
  background: rgba(245, 183, 0, 0.1);
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: var(--gold);
  align-items: center;
  gap: 0.75rem;
}

.verification-notice.show {
  display: flex;
}

.verification-notice i {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ====================================
FORM STATUS / ERROR MESSAGES
=================================== */
.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  display: none;
}

.form-status.error {
  display: block;
  background: rgba(255, 77, 77, 0.1);
  border: 1px solid var(--danger);
  color: var(--danger);
}

.form-status.success {
  display: block;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid var(--profit-green);
  color: var(--profit-green);
}

/* ====================================
SWITCH FORM LINK
=================================== */
.switch-form {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.switch-form a {
  color: var(--gold);
  font-weight: 600;
  transition: 0.3s;
  cursor: pointer;
}

.switch-form a:hover {
  color: var(--premium-gold);
}

/* ====================================
PASSWORD STRENGTH (Register)
=================================== */
.password-strength {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.password-strength .strength-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.password-strength .strength-bar .strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  transition:
    width 0.3s,
    background 0.3s;
}

.password-strength .strength-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  min-width: 60px;
  text-align: right;
}

/* ====================================
RESPONSIVE - MOBILE FIRST (Increased margin-top)
=================================== */
@media (max-width: 768px) {
  .auth-container {
    margin: 100px auto 30px;
    padding: 0 0.75rem;
  }

  .auth-card {
    padding: 1.75rem 1.25rem;
  }

  .auth-tab {
    font-size: 0.85rem;
    padding: 0.55rem;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
  }

  .social-login {
    flex-direction: column;
  }

  .social-btn {
    padding: 0.65rem;
  }

  .input-wrapper input {
    padding: 0.75rem 0.75rem;
    font-size: 0.9rem;
  }

  .auth-glow.glow-1 {
    width: 250px;
    height: 250px;
    top: -50px;
    right: -50px;
  }

  .auth-glow.glow-2 {
    width: 250px;
    height: 250px;
    bottom: -50px;
    left: -50px;
  }

  .auth-form h2 {
    font-size: 1.3rem;
  }

  .btn-primary {
    padding: 0.8rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 520px) {
  .auth-container {
    margin: 110px auto 25px;
    padding: 0 0.75rem;
  }

  .auth-card {
    padding: 1.5rem 1.25rem;
  }

  .auth-tab {
    font-size: 0.8rem;
    padding: 0.5rem;
  }

  .auth-form h2 {
    font-size: 1.25rem;
  }

  .btn-primary {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 420px) {
  .auth-container {
    margin: 120px auto 20px;
    padding: 0 0.6rem;
  }

  .auth-card {
    padding: 1.25rem 1rem;
    border-radius: 20px;
  }

  .auth-tab {
    font-size: 0.75rem;
    padding: 0.45rem;
  }

  .auth-tabs {
    border-radius: 10px;
    padding: 0.2rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .form-group label {
    font-size: 0.8rem;
  }

  .input-wrapper input {
    font-size: 0.85rem;
    padding: 0.7rem 0.7rem;
  }

  .input-wrapper .input-icon {
    font-size: 0.85rem;
    padding: 0 0 0 0.7rem;
  }

  .input-wrapper .toggle-password {
    padding: 0 0.7rem;
    font-size: 0.9rem;
  }

  .auth-form h2 {
    font-size: 1.15rem;
  }

  .auth-form .form-subtitle {
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }

  .btn-primary {
    font-size: 0.85rem;
    padding: 0.7rem;
    border-radius: 10px;
  }

  .social-btn {
    font-size: 0.85rem;
    padding: 0.6rem;
    border-radius: 10px;
  }

  .form-options .remember-me {
    font-size: 0.8rem;
  }

  .form-options .forgot-password {
    font-size: 0.8rem;
  }

  .switch-form {
    font-size: 0.85rem;
    margin-top: 1.25rem;
  }

  .auth-divider {
    font-size: 0.8rem;
    margin: 1.25rem 0;
  }

  .verification-notice {
    font-size: 0.8rem;
    padding: 0.6rem 0.75rem;
  }

  .form-status {
    font-size: 0.8rem;
    padding: 0.6rem 0.75rem;
  }

  .password-strength .strength-label {
    font-size: 0.7rem;
    min-width: 45px;
  }

  .auth-glow.glow-1 {
    width: 180px;
    height: 180px;
    top: -40px;
    right: -40px;
  }

  .auth-glow.glow-2 {
    width: 180px;
    height: 180px;
    bottom: -40px;
    left: -40px;
  }
}

@media (max-width: 360px) {
  .auth-container {
    margin: 130px auto 15px;
    padding: 0 0.4rem;
  }

  .auth-card {
    padding: 1rem 0.75rem;
    border-radius: 16px;
  }

  .auth-tab {
    font-size: 0.65rem;
    padding: 0.35rem;
  }

  .auth-tabs {
    border-radius: 8px;
    padding: 0.15rem;
    margin-bottom: 1.25rem;
  }

  .form-group {
    margin-bottom: 0.75rem;
  }

  .form-group label {
    font-size: 0.7rem;
  }

  .input-wrapper input {
    font-size: 0.75rem;
    padding: 0.55rem 0.55rem;
  }

  .input-wrapper .input-icon {
    font-size: 0.75rem;
    padding: 0 0 0 0.55rem;
  }

  .input-wrapper .toggle-password {
    padding: 0 0.55rem;
    font-size: 0.8rem;
  }

  .auth-form h2 {
    font-size: 1rem;
  }

  .auth-form .form-subtitle {
    font-size: 0.7rem;
    margin-bottom: 0.75rem;
  }

  .btn-primary {
    font-size: 0.75rem;
    padding: 0.55rem;
    border-radius: 8px;
  }

  .social-btn {
    font-size: 0.75rem;
    padding: 0.5rem;
    border-radius: 8px;
  }

  .form-options {
    margin-bottom: 0.75rem;
  }

  .form-options .remember-me {
    font-size: 0.7rem;
  }

  .form-options .forgot-password {
    font-size: 0.7rem;
  }

  .switch-form {
    font-size: 0.75rem;
    margin-top: 1rem;
  }

  .auth-divider {
    font-size: 0.7rem;
    margin: 0.75rem 0;
  }

  .verification-notice {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
  }

  .form-status {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
  }

  .password-strength .strength-label {
    font-size: 0.6rem;
    min-width: 35px;
  }

  .auth-glow.glow-1 {
    width: 150px;
    height: 150px;
    top: -30px;
    right: -30px;
  }

  .auth-glow.glow-2 {
    width: 150px;
    height: 150px;
    bottom: -30px;
    left: -30px;
  }
}

/* ====================================
RESPONSIVE - LANDSCAPE MODE ON PHONES
=================================== */
@media (max-height: 600px) and (orientation: landscape) {
  .auth-container {
    margin: 80px auto 15px;
  }

  .auth-card {
    padding: 1.25rem 1.25rem;
  }

  .auth-tabs {
    margin-bottom: 1rem;
  }

  .form-group {
    margin-bottom: 0.75rem;
  }

  .auth-form h2 {
    font-size: 1.2rem;
    margin-bottom: 0;
  }

  .auth-form .form-subtitle {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
  }

  .form-options {
    margin-bottom: 1rem;
  }

  .auth-divider {
    margin: 0.75rem 0;
  }

  .social-login {
    margin-bottom: 0.5rem;
  }

  .switch-form {
    margin-top: 0.75rem;
  }
}

/* ====================================
RESPONSIVE - TABLET AND LARGER
=================================== */
@media (min-width: 769px) and (max-height: 800px) {
  .auth-card {
    padding: 2rem 2rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }
}

@media (min-width: 992px) {
  .auth-card {
    padding: 3rem 2.5rem;
  }

  .auth-container {
    max-width: 480px;
    margin: 90px auto 50px;
  }
}

/* ====================================
MOBILE MENU STYLES
==================================== */

/* Mobile Menu Close Button */
.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.mobile-menu-close:hover {
  background: var(--gradient-primary);
  color: var(--dark);
  transform: rotate(90deg);
  border-color: transparent;
}

/* Mobile Menu Links Container */
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 2rem;
  overflow-y: auto;
}

.mobile-menu-links a {
  font-size: 1rem;
  font-weight: 500;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  transition: 0.3s;
  color: var(--text-muted);
  text-decoration: none;
}

.mobile-menu-links a:hover {
  color: var(--gold);
  padding-left: 0.5rem;
  border-bottom-color: var(--gold);
}

.mobile-menu-links a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  right: -100%;
  top: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background: rgba(5, 10, 22, 0.98);
  backdrop-filter: blur(25px);
  z-index: 2000;
  transition: 0.4s ease;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.5rem 2rem;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  z-index: 1500;
  transition: 0.3s;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Social Icons */
.mobile-social {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.mobile-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: 0.3s;
  color: var(--white);
  text-decoration: none;
}

.mobile-social a:hover {
  background: var(--gradient-primary);
  color: var(--dark);
  transform: translateY(-3px);
}

/* Hamburger Button */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.25rem;
  background: none;
  border: none;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--white);
  border-radius: 10px;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Show hamburger on mobile */
@media (max-width: 992px) {
  .hamburger {
    display: flex;
  }
}