/* ================================================================
   Auth Pages — Register & Login
   ================================================================ */

.auth-page {
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px 80px;
}

.auth-card {
  background: #121a24;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 36px 40px;
  width: 100%;
  max-width: 560px;
  box-shadow: 0 32px 80px rgba(0,0,0,.4);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3dffe0, #8ec5ff, #5cf0a8);
}

/* Logo */
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.auth-logo-img {
  height: 148px;
  width: auto;
  object-fit: contain;
  display: block;
  animation: logoEntrance .7s cubic-bezier(.22,1,.36,1) both, logoPulse 3s ease-in-out 1s infinite;
  filter: drop-shadow(0 0 18px rgba(61,255,224,.35));
}

@keyframes logoEntrance {
  from {
    opacity: 0;
    transform: translateY(-18px) scale(.88);
    filter: drop-shadow(0 0 0px rgba(61,255,224,0));
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 18px rgba(61,255,224,.35));
  }
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 14px rgba(61,255,224,.3)); }
  50%       { filter: drop-shadow(0 0 28px rgba(61,255,224,.6)); }
}

.auth-logo-mark {
  font-size: 22px;
  color: #3dffe0;
}

.auth-logo-name {
  font-size: 16px;
  font-weight: 800;
  color: #e8edf5;
  letter-spacing: -.3px;
}

/* Başlık */
.auth-title {
  font-size: 24px;
  font-weight: 800;
  color: #e8edf5;
  margin: 0 0 6px;
  letter-spacing: -.3px;
}

.auth-sub {
  font-size: 13px;
  color: #848e9c;
  margin: 0 0 24px;
}

/* Hata kutusu */
.auth-alert {
  background: rgba(246,70,93,.1);
  border: 1px solid rgba(246,70,93,.3);
  color: #f6465d;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 18px;
}

/* Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-label {
  font-size: 12px;
  font-weight: 600;
  color: #848e9c;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.auth-input {
  width: 100%;
  background: #0d1219;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  color: #e8edf5;
  font-size: 14px;
  padding: 11px 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}

.auth-input::placeholder { color: #4a5568; }

.auth-input:focus {
  border-color: rgba(61,255,224,.4);
  box-shadow: 0 0 0 3px rgba(61,255,224,.07);
}

.auth-input.mono {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 1px;
}

/* Şifre gözü */
.auth-pw-wrap {
  position: relative;
}

.auth-pw-wrap .auth-input {
  padding-right: 40px;
}

.auth-pw-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  opacity: .5;
  padding: 4px;
  line-height: 1;
  transition: opacity .15s;
}
.auth-pw-eye:hover { opacity: .9; }

/* Şifre gücü */
.auth-pw-strength {
  height: 3px;
  background: rgba(255,255,255,.06);
  border-radius: 2px;
  overflow: hidden;
  margin-top: -6px;
}

.auth-pw-bar {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width .3s, background .3s;
}

.auth-pw-hint {
  font-size: 11px;
  font-weight: 600;
  min-height: 16px;
  margin-top: -2px;
}

/* Checkbox */
.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.auth-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #3dffe0;
  cursor: pointer;
}

.auth-check span {
  font-size: 12px;
  color: #848e9c;
  line-height: 1.6;
}

.auth-check a {
  color: #3dffe0;
  text-decoration: none;
}
.auth-check a:hover { text-decoration: underline; }

/* Submit */
.auth-submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #3dffe0 0%, #5cf0a8 100%);
  border: none;
  border-radius: 12px;
  color: #070a0f;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  margin-top: 4px;
  font-family: inherit;
}

.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(61,255,224,.25);
}

.auth-submit:active { transform: translateY(0); }

/* Alt link */
.auth-footer-link {
  text-align: center;
  font-size: 13px;
  color: #848e9c;
  margin-top: 20px;
}

.auth-footer-link a {
  color: #3dffe0;
  text-decoration: none;
  font-weight: 600;
}
.auth-footer-link a:hover { text-decoration: underline; }

/* Divider (login'de kullanılabilir) */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #4a5568;
  font-size: 12px;
  margin: 4px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.07);
}

/* Mono input (kod girişi) */
.auth-input.mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Alert (inline error) */
.auth-alert {
  background: rgba(246,70,93,.1);
  border: 1px solid rgba(246,70,93,.35);
  color: #f6465d;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 540px) {
  .auth-card { padding: 28px 20px; border-radius: 16px; }
  .auth-row-2 { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .auth-page { padding: 20px 12px 60px; }
  .auth-title { font-size: 20px; }
}
