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

body {
  min-height: 100vh;
  font-family: "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 0% 0%, rgba(229,56,59, 0.22), transparent 38%),
    radial-gradient(circle at 100% 100%, rgba(186,24,27, 0.18), transparent 36%),
    #F5F3F4;
  color: #161A1D;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.reg-page {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reg-card {
  width: min(460px, 100%);
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid rgba(168,159,160, 0.3);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.12);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
}

.reg-logo {
  text-decoration: none;
  font-size: 26px;
  font-weight: 800;
  color: #E5383B;
  text-align: center;
  display: block;
}

.reg-title {
  font-size: 24px;
  font-weight: 800;
  color: #161A1D;
  text-align: center;
  margin-top: -6px;
}

.reg-subtitle {
  font-size: 14px;
  color: #7a7374;
  text-align: center;
  margin-top: -10px;
}

/* ── Rol kartları ── */
.role-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.role-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 2px solid #e4e1e1;
  border-radius: 14px;
  padding: 18px 10px;
  background: #F5F3F4;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
  font-family: inherit;
}

.role-card:hover {
  border-color: #f2abad;
  background: #fdf1f1;
  transform: translateY(-2px);
}

.role-card.active {
  border-color: #E5383B;
  background: #fce4e4;
}

.role-icon {
  font-size: 28px;
}

.role-name {
  font-size: 14px;
  font-weight: 700;
  color: #161A1D;
}

.role-desc {
  font-size: 12px;
  color: #7a7374;
}

/* ── Form ── */
.reg-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reg-form input {
  width: 100%;
  border: 1px solid #D3D3D3;
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 16px;
  font-family: inherit;
  background: #F5F3F4;
  color: #161A1D;
  transition: border-color 0.15s, outline 0.15s;
}

.reg-form input:focus {
  outline: 2px solid #f2abad;
  border-color: #E5383B;
  background: #fff;
}

.reg-submit-btn {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #E5383B, #BA181B);
  color: #ffffff;
  font-family: inherit;
  transition: opacity 0.15s;
  margin-top: 4px;
}

.reg-submit-btn:hover { opacity: 0.92; }
.reg-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Google / Apple ile devam et ──────────────────────────────
   Giris kutusundaki (style.css) butonlarla ayni gorunum; kayit sayfasi
   style.css yuklemedigi icin burada tekrarlanir. */
.reg-divider {
  text-align: center;
  color: #7a7374;
  font-size: 14px;
  margin: 2px 0;
}

@property --glogin-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@property --alogin-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.google-login,
.apple-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 2px solid transparent;
  background-origin: border-box;
  background-clip: padding-box, border-box;
  color: #161A1D;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}

.google-login {
  background-image:
    linear-gradient(#ffffff, #ffffff),
    conic-gradient(
      from var(--glogin-angle),
      transparent 55%,
      #f2abad 72%,
      #E5383B 82%,
      #E5383B 88%,
      #E5383B 94%,
      transparent
    );
  animation: glogin-spin 2.5s linear infinite;
}

.apple-login {
  background-image:
    linear-gradient(#ffffff, #ffffff),
    conic-gradient(
      from var(--alogin-angle),
      transparent 55%,
      #a89fa0 72%,
      #4a4344 82%,
      #161A1D 88%,
      #4a4344 94%,
      transparent
    );
  animation: alogin-spin 2.5s linear infinite;
}

.google-login:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(229, 56, 59, 0.22); }
.apple-login:hover  { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(15, 23, 42, 0.18); }

.google-login:disabled,
.apple-login:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  animation-play-state: paused;
}

.google-g,
.apple-logo {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@keyframes glogin-spin { to { --glogin-angle: 360deg; } }
@keyframes alogin-spin { to { --alogin-angle: 360deg; } }

/* ── Geri bildirim ── */
.reg-feedback {
  font-size: 14px;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
}

.reg-feedback.error {
  background: #fce4e4;
  color: #660708;
}

.reg-feedback.success {
  background: #dcfce7;
  color: #166534;
}

/* ── Alt link ── */
.reg-login-link {
  font-size: 14px;
  color: #7a7374;
  text-align: center;
}

.reg-login-link a {
  color: #E5383B;
  font-weight: 700;
  text-decoration: none;
}

.reg-login-link a:hover { text-decoration: underline; }

/* ── Mobile ── */
@media (max-width: 480px) {
  .reg-card {
    padding: 28px 18px 24px;
    gap: 16px;
    border-radius: 18px;
  }

  .reg-title { font-size: 21px; }
}
