﻿:root {
  --primary-color: #fff;
  --secondary-color: #f8f9fa;
  --accent-color: #000;
  --text-primary: #000;
  --text-secondary: rgba(0, 0, 0, 0.9);
  --gradient: linear-gradient(45deg, #000, #333);
  --transition: all 0.3s ease;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.loader-spin {
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #1a1a1a;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-y: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background removed */
/* body::before removed */
/* body::after removed */

.accent-lines {
  display: none;
}

.accent-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
  height: 1px;
  width: 100%;
}

.accent-line:nth-child(1) {
  top: 20%;
  transform: translateX(-100%);
  animation: slideIn 8s ease-out forwards;
}

.accent-line:nth-child(2) {
  top: 60%;
  transform: translateX(100%);
  animation: slideIn 8s ease-out 1s forwards;
}

.accent-line:nth-child(3) {
  top: 80%;
  transform: translateX(-100%);
  animation: slideIn 8s ease-out 2s forwards;
}

@keyframes slideIn {
  to {
    transform: translateX(0);
  }
}

.corner-accent {
  display: none;
}

.corner-accent.top-left {
  top: 50px;
  left: 50px;
  border-right: none;
  border-bottom: none;
}

.corner-accent.top-right {
  top: 50px;
  right: 50px;
  border-left: none;
  border-bottom: none;
}

.corner-accent.bottom-left {
  bottom: 50px;
  left: 50px;
  border-right: none;
  border-top: none;
}

.corner-accent.bottom-right {
  bottom: 50px;
  right: 50px;
  border-left: none;
  border-top: none;
}

/* Floating container */
.main-content-container {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.main-content-container::-webkit-scrollbar {
  width: 8px;
}

.main-content-container::-webkit-scrollbar-track {
  background: transparent;
}

.main-content-container::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.main-content-container::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

.content-wrapper {
  max-width: 600px;
  margin: 1.5rem auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 8px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  position: relative;
  padding: 2rem 1.5rem;
  min-height: auto;
}

.content-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  z-index: -1;
  border-radius: 30px;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-logo .logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo .logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: #000;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #e0e0e0 50%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero p {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(0, 0, 0, 0.9);
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
}

/* Login Card - Merged with main card */
.login-card {
  max-width: 100%;
  margin: 1.25rem auto 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.login-card h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #000;
  text-align: center;
  margin-bottom: 1.25rem;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #000;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.95);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: #007bff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

#email,
#passcode {
  text-align: center;
}

.status-input-wrapper {
  position: relative;
}

.status-input-wrapper .form-control {
  padding-right: 2.5rem;
}

.status-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.status-icon.visible {
  opacity: 1;
}

/* Passcode input styling */
#passcode {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  letter-spacing: 0.3rem;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Style the password dots to match monospace spacing */
#passcode::placeholder {
  font-family: 'Courier New', monospace;
  letter-spacing: 0.3rem;
}

/* Password toggle styles */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper .form-control {
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: rgba(0, 0, 0, 0.5);
  transition: var(--transition);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  color: rgba(0, 0, 0, 0.7);
  background: rgba(0, 0, 0, 0.05);
}

.password-toggle:focus {
  outline: none;
  color: #007bff;
  background: rgba(0, 123, 255, 0.1);
}

.password-toggle i {
  font-size: 1rem;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.7);
}

.btn-primary {
  background: rgba(0, 123, 255, 0.2);
  color: #007bff;
  border: 1px solid #007bff;
  padding: 0.85rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  font-size: 0.95rem;
}

.btn-primary:hover {
  background: rgba(0, 123, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
  transform: scale(0.98);
}

/* Error message styles - removed, using inline styles to match signup.html */

/* ID validation status styles */
#idValidationStatus {
  color: #28a745;
  font-weight: 500;
  transition: opacity 0.5s ease-out;
}

#idValidationStatus i {
  color: #28a745;
}

#idValidationStatus.fade-out {
  opacity: 0;
}

#idInvalidStatus {
  color: #dc3545;
  font-weight: 500;
}

#idInvalidStatus i {
  color: #dc3545;
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-primary);
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 0.8rem 1.3rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  min-width: 140px;
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Navigation section styles */
.nav-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-divider {
  text-align: center;
  margin-bottom: 1rem;
}

.nav-divider span {
  color: rgba(0, 0, 0, 0.6);
  font-size: 0.85rem;
  font-weight: 500;
}

.nav-section .btn-secondary {
  width: 100%;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  font-size: 0.9rem;
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(0, 0, 0, 0.5);
  margin: 0.75rem 0;
  font-size: 0.85rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}

.oauth {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.oauth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.03);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
}

.oauth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.oauth-btn i {
  color: #000;
}

/* Footer note */
.footnote {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.55);
}

/* Honey pot - completely hidden from humans */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}



/* Forgot Passcode Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
}

.modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.modal-header {
  margin-bottom: 1.5rem;
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.modal-header p {
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.6);
}

.modal-step {
  display: none;
}

.modal-step.active {
  display: block;
}

/* Responsive */
@media (max-width: 1024px) {
  .main-content-container {
    padding: 2rem;
  }

  .content-wrapper {
    margin-left: 2rem;
    margin-right: 2rem;
  }
}

@media (max-width: 768px) {
  .main-content-container {
    padding: 0.25rem;
  }

  .content-wrapper {
    border-radius: 16px;
    margin-left: 0.25rem;
    margin-right: 0.25rem;
    padding: 1.75rem 1rem;
  }

  .login-card {
    margin-top: 1.25rem;
    padding: 1.5rem;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .remember {
    order: 2;
    justify-content: center;
  }

  .btn-primary {
    width: 100%;
    order: 1;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .content-wrapper {
    border-radius: 12px;
    margin-left: 0.15rem;
    margin-right: 0.15rem;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .hero-logo .logo-text {
    font-size: clamp(1rem, 5vw, 1.4rem);
    letter-spacing: 2px;
  }
}

/* Respect device safe-areas (iOS notches) */
@supports (padding: max(0px)) {
  .main-content-container {
    padding-top: max(3rem, env(safe-area-inset-top));
    padding-right: max(3rem, env(safe-area-inset-right));
    padding-bottom: max(3rem, env(safe-area-inset-bottom));
    padding-left: max(3rem, env(safe-area-inset-left));
  }
}



/* Tablet Landscape (768px–991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .main-content-container {
    padding: 2rem;
  }

  .content-wrapper {
    border-radius: 25px;
    margin-left: 2rem;
    margin-right: 2rem;
  }
}

/* Tablet Portrait (576px–767px) */
@media (min-width: 576px) and (max-width: 767px) {
  .main-content-container {
    padding: 1.5rem;
  }

  .content-wrapper {
    border-radius: 20px;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
  }

  .login-card {
    padding: 1.75rem;
  }
}

/* Mobile Large (425px–575px) */
@media (min-width: 425px) and (max-width: 575px) {
  .main-content-container {
    padding: 1rem;
  }

  .content-wrapper {
    border-radius: 18px;
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .login-card {
    padding: 1.5rem;
  }
}

/* Mobile Medium (375px–424px) */
@media (min-width: 375px) and (max-width: 424px) {
  .main-content-container {
    padding: 0.75rem;
  }

  .content-wrapper {
    border-radius: 15px;
    margin-left: 0.75rem;
    margin-right: 0.75rem;
  }

  .btn-primary {
    width: 100%;
  }
}

/* Mobile Small (<=374px) */
@media (max-width: 374px) {
  .main-content-container {
    padding: 0.5rem;
  }

  .content-wrapper {
    border-radius: 12px;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }

  .login-card {
    padding: 1rem;
  }

  .btn-primary {
    width: 100%;
  }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
  .main-content-container {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .hero {
    margin-bottom: 1rem;
  }

  .login-card {
    margin-top: 1rem;
  }
}

.sso-btn {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1a1a1a;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
}

.sso-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

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