/* Register page — Graphite Theme */

:root {
  --accent:        #e8861a;
  --accent-dark:   #c97015;
  --accent-light:  #3a2e1a;
  --bg:            #2d2d35;
  --surface:       #38383f;
  --surface-2:     #44444c;
  --border:        #55555e;
  --border-light:  #44444c;
  --text-primary:  #f0f0f0;
  --text-secondary:#a0a0aa;
  --text-muted:    #5a5a63;
  --success:       #34b87a;
  --error:         #e05252;
}


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

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg, #2d2d35);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 480px;
  background: var(--surface, #38383f);
  border: 1px solid var(--border-light, #44444c);
  border-left: 3px solid var(--accent, #e8861a);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 24px 48px rgba(0,0,0,.35);
  animation: fadeInUp 0.5s ease-out;
}

/* Brand mark */
.brand-mark {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.brand-mark__ft {
  width: 40px;
  height: 40px;
  background: var(--accent, #e8861a);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: white;
}

h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary, #f0f0f0);
  letter-spacing: -.3px;
  margin-bottom: 24px;
  text-align: center;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-size: 13px;
  font-weight: 600;
  color: #c8ccd8;
}

input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border, #55555e);
  border-radius: 9px;
  font-size: 14px;
  font-family: inherit;
  color: #f0f0f0;
  background: var(--surface-2, #44444c);
  transition: border-color .18s ease, box-shadow .18s ease;
  box-sizing: border-box;
  color-scheme: dark;
}

input::placeholder { color: #7a7a88; }

/* Autofill override — браузер не перекрывает цвет */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f0f0f0;
  -webkit-box-shadow: 0 0 0 100px var(--surface-2, #44444c) inset;
  box-shadow: 0 0 0 100px var(--surface-2, #44444c) inset;
  caret-color: #f0f0f0;
}
input:hover { border-color: #7a7a85; }
input:focus {
  outline: none;
  border-color: var(--accent, #e8861a);
  box-shadow: 0 0 0 3px rgba(232,134,26,.15);
}

.analyze-btn {
  width: 100%;
  padding: 12px;
  background: var(--accent, #e8861a);
  color: white;
  border: none;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
  margin-top: 4px;
}

.analyze-btn:hover {
  background: var(--accent-dark, #c97015);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(232,134,26,.35);
}

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

.note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-secondary, #a0a0aa);
  text-align: center;
}

.note a {
  color: var(--accent, #e8861a);
  text-decoration: none;
  font-weight: 500;
}

.note a:hover { text-decoration: underline; }

.error {
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(224,82,82,.1);
  border-left: 3px solid var(--error, #e05252);
  border-radius: 8px;
  font-size: 13px;
  color: var(--error, #e05252);
}

/* Role selector */
.role-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 6px;
}

.role-card {
  border: 1.5px solid var(--border, #55555e);
  border-radius: 12px;
  padding: 16px 12px;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
  text-align: center;
  background: var(--surface-2, #44444c);
  display: block;
}

.role-card:hover {
  border-color: var(--accent, #e8861a);
}

.role-card.selected {
  border-color: var(--accent, #e8861a);
  background: var(--accent-light, #3a2e1a);
}

.role-card input[type="radio"] { display: none; }

.role-card__icon  { font-size: 26px; margin-bottom: 6px; }
.role-card__title { font-size: 14px; font-weight: 600; color: var(--text-primary, #f0f0f0); }
.role-card__desc  { font-size: 12px; color: var(--text-secondary, #a0a0aa); margin-top: 3px; line-height: 1.4; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .container { padding: 28px 20px; }
  h1 { font-size: 1.4rem; }
  .role-selector { grid-template-columns: 1fr; }
}
/* Language switcher */
.auth-lang-switcher {
    position: fixed;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 4px;
    z-index: 100;
}

.auth-lang-btn {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary, #888);
    text-decoration: none;
    padding: 4px 7px;
    border-radius: 5px;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    letter-spacing: 0.3px;
}

.auth-lang-btn:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text-primary, #f0f0f0);
}

.auth-lang-btn--active {
    background: var(--accent, #e8861a);
    color: #fff;
    border-color: var(--accent, #e8861a);
}