:root {
  --bg-main: #121A2F;
  --bg-card: #1A243D;
  --accent-gold: #C5A059;
  --text-main: #FFFFFF;
  --text-muted: #A0ABC0;
  --border-color: rgba(255, 255, 255, 0.1);
  --font-main: 'Inter', sans-serif;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Auth Split Screen */
.auth-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.auth-left {
  flex: 1;
  background-color: var(--bg-main);
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border-color);
  background-image: radial-gradient(circle at 0% 0%, rgba(197, 160, 89, 0.05) 0%, transparent 50%);
}

.auth-right {
  flex: 1;
  background-color: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-logo {
  max-width: 250px;
  margin-bottom: 2rem;
}

.auth-title {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.auth-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 80%;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  background-color: rgba(26, 36, 61, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.security-badge svg {
  color: var(--accent-gold);
}

.login-form-wrapper {
  width: 100%;
  max-width: 420px;
}

.form-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.form-header h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.form-header p {
  color: var(--text-muted);
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.input-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  /* Increased contrast as requested */
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* Added border as requested */
  border-radius: 6px;
  color: var(--text-main);
  font-size: 1rem;
  transition: var(--transition);
}

.input-group input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.2);
}

.btn-primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 1rem;
  background-color: var(--accent-gold);
  color: #000;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary:hover {
  background-color: #d4af68;
  transform: translateY(-1px);
}

/* Dashboard */
.dashboard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
}

.nav-brand img {
  height: 40px;
}

.nav-actions .btn-logout {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-size: 0.9rem;
}

.nav-actions .btn-logout:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.dashboard-workspace {
  flex: 1;
  padding: 3rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.workspace-header {
  text-align: center;
  margin-bottom: 3rem;
}

.workspace-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.workspace-header p {
  color: var(--text-muted);
}

.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.upload-box {
  background-color: var(--bg-card);
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.upload-box:hover {
  border-color: var(--accent-gold);
  background-color: rgba(197, 160, 89, 0.02);
}

.upload-icon {
  width: 64px;
  height: 64px;
  background-color: rgba(197, 160, 89, 0.1);
  color: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.upload-icon svg {
  width: 32px;
  height: 32px;
}

.upload-box h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.upload-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.sync-action {
  text-align: center;
}

.btn-large {
  padding: 1.25rem 3rem;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .auth-container {
    flex-direction: column;
  }

  .auth-left,
  .auth-right {
    padding: 2rem;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .upload-grid {
    grid-template-columns: 1fr;
  }
}

/* Multi-Step Animated Form Additions */
.form-header {
  transition: opacity 0.3s ease;
}

.form-slider-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  min-height: 400px;
  /* Adjust according to content */
}

.form-slider {
  display: flex;
  width: 300%;
  /* 3 Steps */
  transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.form-step {
  width: 33.333%;
  flex-shrink: 0;
  padding: 0 10px;
  /* little padding to avoid edge hugging */
}

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

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
  padding: 0 10px;
}

.social-login-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-social {
  background-color: transparent;
  border: 1px solid var(--border-color);
  padding: 1rem 0;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-social:hover {
  border-color: var(--accent-gold);
  background-color: rgba(197, 160, 89, 0.05);
}

.btn-social img {
  width: 24px;
  height: 24px;
}

.signup-prompt {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.signup-prompt a {
  color: var(--text-main);
  font-weight: 600;
  text-decoration: none;
}

.signup-prompt a:hover {
  text-decoration: underline;
  color: var(--accent-gold);
}

.input-disabled {
  background-color: rgba(255, 255, 255, 0.02) !important;
  color: var(--text-muted) !important;
  cursor: not-allowed;
  font-weight: 500;
  border-color: rgba(255, 255, 255, 0.05) !important;
}

.btn-text-back {
  background: none;
  border: none;
  color: var(--text-muted);
  width: 100%;
  margin-top: 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.btn-text-back:hover {
  color: var(--text-main);
}

.success-animation-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 250px;
}

.success-checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: #fff;
  stroke-miterlimit: 10;
  box-shadow: 0 0 20px rgba(0, 200, 83, 0.4);
  animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

@keyframes scale {

  0%,
  100% {
    transform: none;
  }

  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}