/* illegalarsiv.com — giris/kayit (MyBB member.php) */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&display=swap');

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

:root {
  --bg: #0a0b0f;
  --bg-grid: rgba(255, 255, 255, 0.035);
  --surface: #12141c;
  --surface-2: #181b26;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef0f6;
  --text-muted: #8b93a8;
  --accent: #3d6bff;
  --accent-glow: rgba(61, 107, 255, 0.2);
  --header: linear-gradient(135deg, #1a2744 0%, #0f1628 100%);
  --radius: 19.6px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --font: 'DM Sans', system-ui, -apple-system, sans-serif;
  --auth-scale: 1.4;
}

html { font-size: 22.4px; -webkit-font-smoothing: antialiased; }

body.auth-page.ia-auth {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  overflow-x: hidden;
}

.bg-grid,
.site-header,
.site-header-visual {
  display: none !important;
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 801px;
  margin: 0 auto;
  padding: 0 1.82rem 2.24rem;
}

.auth-shell--wide { max-width: 946px; }

.auth-shell--register { max-width: 837px; }

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.15);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.auth-card-header {
  padding: 0.98rem 1.5rem;
  background: var(--header);
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.auth-card-body { padding: 1.5rem 1.56rem 1.43rem; }

.auth-notice { text-align: center; margin-bottom: 1.1rem; }
.auth-notice h1 { font-size: 1.36rem; font-weight: 600; margin-bottom: 0.33rem; }
.auth-notice p { font-size: 1.056rem; color: var(--text-muted); }

.login-panel {
  border: 1px solid var(--border-strong);
  border-radius: 15px;
  padding: 1.3rem;
  background: var(--surface-2);
}

.form-group { margin-bottom: 0.98rem; }
.form-group label {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-group input.textbox,
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.login-panel select {
  width: 100%;
  padding: 0.91rem 1.1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0d0f14;
  color: var(--text);
  font-family: inherit;
  font-size: 1.04rem;
}

.form-group input:focus,
.login-panel select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
}

.checkbox-label input { width: 16px; height: 16px; accent-color: var(--accent); }

.link-muted { font-size: 0.82rem; color: var(--accent); text-decoration: none; }
.link-muted:hover { text-decoration: underline; }

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.btn, input.btn, a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.43rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}

.btn-primary, input.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.auth-footer { margin-top: 0.85rem; text-align: center; }

.contact-line {
  font-size: 0.8125rem;
  color: #ffffff !important;
  margin-bottom: 0.55rem;
}

.contact-line a {
  color: #ffffff !important;
  text-decoration: none;
}

.contact-line a:hover {
  color: #ffffff !important;
  text-decoration: underline;
  opacity: 0.9;
}

.warning-box {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: rgba(230, 57, 70, 0.08);
  border: 1px solid rgba(230, 57, 70, 0.2);
  text-align: left;
}

.warning-box strong { color: #ff6b6b; }

.auth-footer--promo {
  margin-top: 1.15rem;
  padding-top: 0.25rem;
  text-align: center;
}

.promo-line {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #b8bfd4;
  margin-bottom: 0.7rem;
}

.promo-line--highlight {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.35), 0 0 48px rgba(255, 80, 80, 0.15);
  margin-bottom: 0;
  padding: 0.5rem 0.25rem 0;
}

.agreement-body {
  text-align: left;
  margin: 0.5rem 0 1.25rem;
}

.agreement-body .promo-line {
  font-size: 1rem;
}

body.ia-agreement .auth-card-body {
  text-align: left;
}

body.ia-register .auth-notice { display: none; }

.register-extra--hidden .trow1,
.register-extra--hidden .trow2,
.register-extra--hidden table {
  width: 100%;
}

.register-extra--hidden label[for="referrer"],
.register-extra--hidden #referrer,
.register-extra--hidden .referrer {
  display: none !important;
}

.login-panel .form-group input.textbox,
.login-panel .form-group input[type="password"],
.login-panel .form-group input[type="email"] {
  width: 100%;
  max-width: 100%;
}

.auth-switch {
  margin-top: 0.65rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.auth-switch a { color: var(--accent); font-weight: 600; text-decoration: none; }

/* MyBB hata / bildirim */
body.ia-auth .red_alert,
body.ia-auth .error,
body.ia-auth .invalid_field,
body.ia-auth .pm_alert {
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  background: rgba(230, 57, 70, 0.12);
  border: 1px solid rgba(230, 57, 70, 0.35);
  color: #ff8a8a;
}

body.ia-auth .green_alert {
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.35);
  color: #7bed9f;
}

body.ia-auth #debug { display: none !important; }

.register-extra { margin-top: 0.75rem; }
.register-extra .form-group { margin-bottom: 0.65rem; }

@media (max-width: 480px) {
  .auth-shell { padding: 0 0.85rem 1rem; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn, .form-actions input.btn { width: 100%; }
}
