/* ============================================
   LOGIN / SIGNUP PAGE — Styles
   ============================================ */

/* ── Auth Section ── */
.auth-section {
  padding: 48px 0 80px;
  min-height: calc(100vh - 72px - 300px);
  display: flex;
  align-items: center;
}

.auth-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 44px 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gradient);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  margin-bottom: 16px;
  transition: transform var(--transition);
}
.auth-logo:hover { transform: scale(1.05); }
.auth-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.auth-header h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-header p { color: var(--text-secondary); font-size: 0.92rem; }

/* ── Form ── */
.auth-form .form-group { margin-bottom: 20px; }

.auth-form label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 7px;
  color: var(--text-primary);
}

.auth-form label .optional {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-tertiary);
  font-size: 1rem;
  pointer-events: none;
  transition: color var(--transition);
  z-index: 1;
}
.input-wrapper:focus-within .input-icon { color: var(--accent); }

.input-wrapper input {
  width: 100%;
  padding: 14px 56px 14px 44px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--bg-primary);
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition);
}
.input-wrapper input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgb(101 163 13 / 0.12);
}
.input-wrapper input::placeholder { color: var(--text-tertiary); }

.password-toggle {
  position: absolute;
  right: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  border-radius: 8px;
  transition: all var(--transition);
  z-index: 1;
}
.password-toggle:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

/* ── Form Row ── */
.form-row-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 16px;
  margin-bottom: 28px;
  padding: 2px 0;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 500 !important;
  color: var(--text-secondary) !important;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  line-height: 1;
}

.custom-checkbox {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  line-height: 1;
  top: 2px;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.custom-checkbox .checkmark {
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--bg-card);
  transition: all var(--transition);
  box-sizing: border-box;
}

.custom-checkbox input:checked + .checkmark {
  background: var(--accent);
  border-color: var(--accent);
  position: relative;
}

.custom-checkbox input:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.custom-checkbox input:focus-visible + .checkmark {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.label-text {
  display: inline;
  vertical-align: middle;
  line-height: 1;
}

.forgot-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  padding: 6px 10px;
  border-radius: 8px;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.forgot-link:hover { background: var(--accent-light); }

/* ── Full Button ── */
.btn-full {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  border-radius: 12px;
}

/* ── Footer Text ── */
.auth-footer-text {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}
.auth-footer-text a { color: var(--accent); font-weight: 600; }
.auth-footer-text a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 560px) {
  .auth-card { padding: 32px 24px 28px; border-radius: 16px; }
  .auth-header h1 { font-size: 1.3rem; }
  .auth-section { padding: 24px 0 60px; }
}
.auth-footer-text a:hover {
  text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 560px) {
  .auth-card {
    padding: 32px 24px;
    border-radius: var(--radius-lg);
  }
  .auth-header h1 { font-size: 1.3rem; }
  .social-login { flex-direction: column; }
}
