.auth-page {
  display: flex; min-height: 100vh;
}
.auth-side {
  width: 380px;
  background: linear-gradient(135deg, #0A1628, #102A43, #1A7A9E);
  display: flex; align-items: center; justify-content: center;
  padding: 40px; position: relative; overflow: hidden;
}
.auth-side-inner {
  position: relative; z-index: 1;
  text-align: center; color: white;
}
.auth-logo { width: 72px; margin-bottom: 14px; }
.auth-side-inner h2 {
  font-weight: 700; font-size: 1.3rem; margin-bottom: 8px;
}
.auth-side-inner p {
  font-size: 0.9rem; opacity: 0.7; line-height: 1.7;
}
.auth-main {
  flex: 1; display: flex; flex-direction: column;
  padding: 24px 40px 40px;
  background: var(--bg);
}
.auth-top {
  text-align: left; font-size: 0.88rem;
  color: var(--text-secondary); margin-bottom: 40px;
}
.auth-top a { font-weight: 600; }
.auth-center {
  max-width: 420px; width: 100%;
  margin: 0 auto; flex: 1;
  display: flex; flex-direction: column; justify-content: center;
}
.auth-title {
  font-size: 1.5rem; font-weight: 800;
  color: var(--secondary); margin-bottom: 6px;
}
.auth-desc {
  color: var(--text-muted); font-size: 0.9rem;
  margin-bottom: 28px;
}
.auth-btn {
  width: 100%; margin-top: 8px; position: relative;
}
.auth-btn:disabled { opacity: 0.7; cursor: not-allowed; }
.auth-hint {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.78rem; color: var(--text-muted);
  margin-top: 20px; padding: 12px;
  background: var(--bg-alt); border-radius: 10px;
  line-height: 1.6;
}
.auth-hint svg { flex-shrink: 0; margin-top: 2px; color: var(--primary); }

.form-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 18px;
}
.form-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-section-title svg {
  color: var(--primary);
  flex-shrink: 0;
}
.form-row:not(:last-child) { margin-bottom: 16px; }
.form-row.dual { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.required { color: var(--error); }

.input-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

.readonly-field {
  background: var(--bg-alt);
  color: var(--text-secondary);
  cursor: default;
  user-select: none;
  display: flex;
  align-items: center;
}

.radio-group {
  display: flex;
  gap: 16px;
  padding-top: 4px;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  cursor: pointer;
}
.radio-label input[type="radio"] {
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
  cursor: pointer;
}

.gender-toggle {
  display: flex;
  gap: 12px;
  padding-top: 2px;
}
.gender-option {
  position: relative;
  flex: 1;
}
.gender-option input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}
.gender-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 50px;
  border: 2px solid var(--card-border);
  background: var(--card-bg);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}
.gender-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
}
.gender-option input:checked + .gender-btn {
  border-color: var(--primary);
  background: rgba(35,156,196,0.08);
  color: var(--primary);
  box-shadow: 0 0 0 4px rgba(35,156,196,0.12);
}
.gender-option input:checked + .gender-btn.male-selected {
  border-color: #239CC4;
  background: rgba(35,156,196,0.1);
  color: #239CC4;
}
.gender-option input:checked + .gender-btn.female-selected {
  border-color: #D4A017;
  background: rgba(212,160,23,0.1);
  color: #D4A017;
}
.gender-option input:focus-visible + .gender-btn {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.gender-btn:hover {
  border-color: var(--text-muted);
  background: var(--bg-alt);
  transform: translateY(-1px);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.6;
}
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  margin-top: 3px;
  flex-shrink: 0;
  cursor: pointer;
}

.file-upload {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 28px 24px; border: 2px dashed var(--card-border);
  border-radius: 12px; background: var(--bg-alt);
  cursor: pointer; transition: 0.25s;
}
.file-upload:hover { border-color: var(--primary); background: rgba(35,156,196,0.04); }
.file-upload.has-file { border-color: var(--success); background: rgba(34,197,94,0.05); }
.file-upload input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.file-upload svg { margin-bottom: 8px; color: var(--primary); }
.file-upload .text { font-size: 0.85rem; color: var(--text-secondary); }
.file-upload .hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
.file-upload .preview {
  width: 80px; height: 80px; border-radius: 50%;
  object-fit: cover; margin-bottom: 8px;
  display: none;
}

@media (max-width: 768px) {
  .auth-page { flex-direction: column; }
  .auth-side { width: 100%; padding: 28px 20px; min-height: auto; }
  .auth-main { padding: 24px 16px 32px; }
  .auth-top { margin-bottom: 24px; }
  .auth-title { font-size: 1.3rem; }
  .form-row.dual { grid-template-columns: 1fr; gap: 0; }
}
