/* ═══════════════════════════════════════════════════════════
   COCHLEA CAP — auth-dark.css (Refactored to Forest Green Aesthetic)
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary:       #0F382C;
  --primary-light: #56C596;
  --accent:        #0F382C;
  --accent-dark:   #185543;

  --danger:        #D9383A;
  --danger-light:  #FDECEC;

  --bg:            #F4F8F5;
  --bg-alt:        #ECF3EF;
  --card-bg:       #FFFFFF;
  --card-border:   rgba(15, 56, 44, 0.12);

  --text-primary:  #0B1B15;
  --text-muted:    #48685B;

  --shadow-sm:     0 4px 18px rgba(15, 56, 44, 0.06);
  --shadow-md:     0 12px 36px rgba(15, 56, 44, 0.10);

  --radius-sm:     10px;
  --radius-md:     16px;
  --radius-lg:     22px;
  --radius-xl:     28px;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: '';
  position: fixed;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(15, 56, 44, 0.05) 0%, transparent 68%);
  pointer-events: none;
}

.auth-wrapper { width: 100%; max-width: 440px; position: relative; }

.auth-brand { text-align: center; margin-bottom: 32px; }
.auth-logo {
  width: 68px; height: 68px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.25s;
}
.auth-logo:hover { transform: scale(1.05); }
.auth-logo img { width: 100%; height: 100%; object-fit: contain; }

.auth-title { font-size: 26px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.025em; }
.auth-subtitle { color: var(--text-muted); margin-top: 6px; font-size: 15px; }

.auth-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 36px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-md);
}

.tab-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 4px;
  position: relative;
  margin-bottom: 26px;
}
.tab-btn {
  position: relative; z-index: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.25s;
}
.tab-btn.active { color: var(--primary); }
.tab-indicator {
  position: absolute;
  top: 4px; left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
}

.error-box {
  background: var(--danger-light);
  border: 1px solid rgba(217, 56, 58, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13.5px;
  color: var(--danger);
  font-weight: 600;
  line-height: 1.45;
}

.input-group { margin-bottom: 18px; }
.input-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.input-wrap { position: relative; }
.input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); width: 18px; height: 18px;
}
.input-wrap input {
  width: 100%;
  background: #FFFFFF;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 13px 14px 13px 42px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-wrap input::placeholder { color: var(--text-muted); opacity: 0.6; }
.input-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 56, 44, 0.12);
}

.btn.btn-primary {
  background: var(--primary) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 18px rgba(15, 56, 44, 0.22) !important;
  border: none !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  border-radius: var(--radius-sm) !important;
  transition: all 0.2s !important;
  width: 100%;
  padding: 14px;
}
.btn.btn-primary:hover:not(:disabled) {
  background: var(--accent-dark) !important;
  box-shadow: 0 6px 24px rgba(15, 56, 44, 0.32) !important;
  transform: translateY(-2px) !important;
}
.btn.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.hidden { display: none !important; }
