:root {
  --baru-dark-blue: #0047ab;
  --baru-light-blue: #86cefa;
  --baru-dark-grey: #333333;
  --baru-gold: #917b4c;
  --baru-silver: #a6a9aa;
  --baru-yellow: #ffbf0b;
  --baru-red: #da291c;
  --baru-orange: #fc4c02;
  --baru-blue: #0071ce;
  --baru-blue-grey: #7c878e;
  --baru-cool-grey: #a8a8a8;
  --baru-light-grey: #d0d0d0;
  --bg-body: #f0f0f0;
  --bg-card: #ffffff;
  --border-color: #e4e9f2;
  --text-primary: var(--baru-dark-grey);
  --text-secondary: var(--baru-blue-grey);
  --accent-blue: var(--baru-dark-blue);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Hurme Geometric Sans No3', 'Inter', sans-serif;
  background: var(--accent-blue);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../../img/baru_logo_v3.png');
  background-repeat: repeat;
  background-size: 150px auto;
  background-position: 0 0;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
  filter: brightness(0) invert(1);
}

.register-container {
  width: 100%;
  max-width: 1100px;
  position: relative;
  z-index: 1;
  margin-top: 40px;
  margin-bottom: 40px;
}

.register-card {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(166, 169, 170, 0.35);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.register-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 8px;
  text-align: center;
}

.register-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  width: 100%;
}

.brand__logo {
  max-width: 100px;
  height: auto;
  filter: brightness(0) saturate(100%) invert(15%) sepia(76%) saturate(4094%)
    hue-rotate(208deg) brightness(92%) contrast(108%);
}

.brand__divider {
  width: 36px;
  height: 1px;
  background: rgba(0, 71, 171, 0.4);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.brand__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-blue);
  font-family: 'Hurme Geometric Sans No3', 'Inter', sans-serif;
}

.brand__subtitle {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent-blue);
  font-family: 'Hurme Geometric Sans No3', 'Inter', sans-serif;
}

.brand__tagline {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-top: 2px;
  font-family: 'Hurme Geometric Sans No3', 'Inter', sans-serif;
}

.register-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  column-gap: 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-input,
.form-textarea,
select.form-input {
  border-radius: 14px;
  border: 1px solid rgba(0, 71, 171, 0.16);
  padding: 14px 16px;
  font-size: 14px;
  background: #ffffff;
  color: var(--text-primary);
  font-family: 'Hurme Geometric Sans No3', 'Inter', sans-serif;
  transition: border-color 0.2s ease, outline 0.2s ease;
  width: 100%;
}

select.form-input {
  cursor: pointer;
  appearance: auto;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(0, 71, 171, 0.4);
}

.form-input:focus,
.form-textarea:focus,
select.form-input:focus {
  outline: 2px solid rgba(0, 71, 171, 0.24);
  outline-offset: 2px;
  border-color: rgba(0, 71, 171, 0.24);
}

.form-error {
  font-size: 12px;
  color: var(--baru-red);
  background: rgba(218, 41, 28, 0.1);
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: 4px;
}

.form-error--general {
  background: rgba(218, 41, 28, 0.15);
  color: var(--baru-red);
  font-weight: 600;
  text-align: center;
  padding: 12px;
}

.password-quality {
  display: flex;
  align-items: center;
  gap: 12px;
}

.password-quality__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;
}

.password-quality__bar {
  flex: 1;
  height: 8px;
  background: rgba(0, 71, 171, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.password-quality__fill {
  height: 100%;
  width: 0%;
  background: var(--baru-red);
  border-radius: 4px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.password-criteria {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: rgba(218, 41, 28, 0.08);
  border-radius: 12px;
}

.password-criteria__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.password-criteria__item--met {
  color: var(--text-primary);
}

.criteria-icon {
  font-weight: bold;
  font-size: 14px;
  width: 18px;
  display: inline-block;
  text-align: center;
}

.password-criteria__item .criteria-icon {
  color: var(--baru-red);
}

.password-criteria__item--met .criteria-icon {
  color: #0f766e;
}

.account-type {
  display: flex;
  gap: 12px;
}

.account-type__button {
  flex: 1;
  padding: 12px 20px;
  border-radius: 14px;
  border: 1px solid rgba(0, 71, 171, 0.2);
  background: rgba(0, 71, 171, 0.06);
  color: var(--accent-blue);
  font-size: 14px;
  font-weight: 600;
  font-family: 'Hurme Geometric Sans No3', 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.account-type__button:hover {
  background: rgba(0, 71, 171, 0.12);
  border-color: rgba(0, 71, 171, 0.3);
}

.account-type__button--active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.register-submit-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  border: none;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Hurme Geometric Sans No3', 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  background: var(--baru-orange);
  color: #ffffff;
  width: 100%;
  letter-spacing: 0.02em;
}

.register-submit-button:hover:not(:disabled) {
  background: #d63d00;
  box-shadow: 0 10px 24px rgba(252, 76, 2, 0.3);
  transform: translateY(-1px);
}

.register-submit-button:active:not(:disabled) {
  transform: translateY(0);
}

.register-submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.9;
}

.register-submit-button__spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: register-spinner 0.7s linear infinite;
}

.register-submit-button--loading .register-submit-button__text {
  visibility: hidden;
}

.register-submit-button--loading .register-submit-button__spinner {
  display: block;
  position: absolute;
}

@keyframes register-spinner {
  to {
    transform: rotate(360deg);
  }
}

.register-cancel-button {
  display: block;
  text-align: center;
  text-decoration: none;
  border-radius: 14px;
  border: 1px solid rgba(0, 71, 171, 0.2);
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Hurme Geometric Sans No3', 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  background: transparent;
  color: var(--accent-blue);
  width: 100%;
  letter-spacing: 0.02em;
}

.register-cancel-button:hover,
.register-cancel-button:focus {
  text-decoration: none;
  background: rgba(0, 71, 171, 0.08);
  border-color: rgba(0, 71, 171, 0.3);
  transform: translateY(-1px);
}

.register-cancel-button:active {
  text-decoration: none;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .register-container {
    max-width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .register-card {
    padding: 36px 28px;
  }
}

/* Karanlık mod – labsis-theme localStorage ile tüm sayfalarda uygulanır */
html[data-theme="dark"] body {
  background: #0f1419;
  color: #e6edf3;
}

html[data-theme="dark"] body::before {
  opacity: 0.06;
}

html[data-theme="dark"] .register-card {
  background: #1a2332;
  border-color: #2d3a4a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .brand__title,
html[data-theme="dark"] .brand__subtitle {
  color: #58a6ff;
}

html[data-theme="dark"] .brand__tagline {
  color: #8b9cb3;
}

html[data-theme="dark"] .register-header,
html[data-theme="dark"] .register-brand {
  border-color: #2d3a4a;
}

html[data-theme="dark"] .form-label {
  color: #e6edf3;
}

html[data-theme="dark"] .form-input,
html[data-theme="dark"] select.form-input {
  background: #0f1419;
  border-color: #2d3a4a;
  color: #e6edf3;
}

html[data-theme="dark"] .form-input::placeholder,
html[data-theme="dark"] .form-textarea::placeholder {
  color: #6e7b8a;
}

html[data-theme="dark"] .register-submit-button {
  background: #1f6feb;
}

html[data-theme="dark"] .register-submit-button:hover:not(:disabled) {
  background: #388bfd;
}

html[data-theme="dark"] .register-cancel-button {
  border-color: #2d3a4a;
  color: #58a6ff;
}

html[data-theme="dark"] .register-cancel-button:hover {
  background: rgba(88, 166, 255, 0.12);
  border-color: #58a6ff;
}

html[data-theme="dark"] .account-type__button {
  background: rgba(88, 166, 255, 0.08);
  border-color: #2d3a4a;
  color: #58a6ff;
}

html[data-theme="dark"] .account-type__button--active {
  background: #1f6feb;
  border-color: #1f6feb;
  color: #fff;
}

html[data-theme="dark"] .auth-toast {
  background: #1a2332;
  border-color: #2d3a4a;
}

html[data-theme="dark"] .auth-toast--error {
  border-left-color: #f85149;
}

html[data-theme="dark"] .auth-toast__message,
html[data-theme="dark"] .auth-toast__errors li {
  color: #e6edf3;
}

/* Sağ üst köşe bildirim (login ile aynı tasarım) */
.auth-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 380px;
  padding: 16px 20px;
  background: var(--bg-card);
  border-radius: 14px;
  border-left: 4px solid var(--accent-blue);
  box-shadow: var(--shadow), 0 4px 20px rgba(0, 71, 171, 0.15);
  font-family: 'Hurme Geometric Sans No3', 'Inter', sans-serif;
  animation: auth-toast-in 0.35s ease-out;
}

.auth-toast--success {
  border-left-color: #0f766e;
  box-shadow: var(--shadow), 0 4px 20px rgba(15, 118, 110, 0.12);
}

.auth-toast--success .auth-toast__icon {
  color: #0f766e;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  flex-shrink: 0;
}

.auth-toast--error {
  border-left-color: #da291c;
  box-shadow: var(--shadow), 0 4px 20px rgba(218, 41, 28, 0.15);
}

.auth-toast--error .auth-toast__icon {
  color: #da291c;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  flex-shrink: 0;
}

.auth-toast__message {
  margin: 0;
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-primary);
}

.auth-toast__errors,
.auth-toast__errors ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-primary);
}

.auth-toast__errors li {
  margin-bottom: 4px;
}

.auth-toast__errors li:last-child {
  margin-bottom: 0;
}

.auth-toast__close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: rgba(0, 71, 171, 0.08);
  color: var(--accent-blue);
  font-size: 20px;
  line-height: 1;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.auth-toast__close:hover {
  background: rgba(0, 71, 171, 0.15);
}

.auth-toast--error .auth-toast__close {
  background: rgba(218, 41, 28, 0.08);
  color: #da291c;
}

.auth-toast--error .auth-toast__close:hover {
  background: rgba(218, 41, 28, 0.15);
}

.auth-toast--hiding {
  animation: auth-toast-out 0.3s ease-in forwards;
}

@keyframes auth-toast-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes auth-toast-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(24px);
  }
}

@media (max-width: 480px) {
  .auth-toast {
    top: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
}

/* Validation (alan altı hatalar) */
.validation-summary {
  color: #da291c;
  font-size: 14px;
  margin-bottom: 16px;
  padding: 10px 12px;
  background: rgba(218, 41, 28, 0.08);
  border-radius: 8px;
  list-style: none;
}

.validation-summary ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.validation-error {
  display: block;
  color: #da291c;
  font-size: 12px;
  margin-top: 4px;
}

.input-validation-error.form-input {
  border-color: #da291c;
  box-shadow: 0 0 0 2px rgba(218, 41, 28, 0.15);
}

@media (max-width: 480px) {
  .brand__title {
    font-size: 12px;
  }

  .brand__subtitle {
    font-size: 10px;
  }

  .account-type {
    flex-direction: column;
  }

  .password-quality {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .password-quality__bar {
    width: 100%;
  }
}

