/* OtiJoint — login / auth ekranı */

.auth-body {
  min-height: 100svh;
  display: flex;
}

.auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: 100svh;
}

/* Sol marka paneli */
.auth__side {
  position: relative;
  background:
    radial-gradient(70% 60% at 30% 20%, rgba(255, 255, 255, 0.25) 0%, transparent 60%),
    linear-gradient(160deg, var(--oj-blue) 0%, var(--oj-blue-dark) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow: hidden;
}

.auth__side-logo {
  position: absolute;
  top: 28px;
  left: 28px;
  height: 44px;
  width: auto;
  background: #fff;
  border-radius: 12px;
  padding: 6px 12px;
}

.auth__side-art {
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: 24px;
  box-shadow: var(--oj-shadow-lg);
}

.auth__side-quote {
  color: #fff;
  font-family: var(--oj-sans);
  font-weight: 800;
  font-size: 1.4rem;
  margin-top: 30px;
  text-align: center;
}

/* Sağ form paneli */
.auth__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background: var(--oj-sky);
}

.auth__card {
  width: 100%;
  max-width: 420px;
  padding: 36px 32px;
}

.auth__logo {
  display: inline-block;
  margin-bottom: 18px;
}

.auth__logo img {
  height: 64px;
  width: auto;
}

.auth__card h1 {
  font-size: 1.8rem;
  color: var(--oj-blue-dark);
}

.auth__sub {
  color: var(--oj-muted);
  margin: 0 0 24px;
}

/* Form alanları */
.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 7px;
  color: var(--oj-ink);
}

.field input[type="email"],
.field input[type="password"],
.field input[type="text"] {
  width: 100%;
  padding: 13px 15px;
  border: 2px solid var(--oj-line);
  border-radius: var(--oj-radius-sm);
  background: #fff;
  color: var(--oj-ink);
  font-size: 1rem;
  transition: border-color 0.15s;
}

.field input:focus {
  border-color: var(--oj-blue);
  outline: none;
}

.field__pw {
  position: relative;
}

.field__pw input {
  padding-right: 48px;
}

.field__toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  font-size: 18px;
  padding: 8px;
  border-radius: 8px;
  line-height: 1;
}

.field--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--oj-ink);
  cursor: pointer;
  margin: 0;
}

.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--oj-blue);
}

.auth__forgot {
  font-weight: 600;
  font-size: 0.92rem;
  background: none;
  border: 0;
  color: var(--oj-blue);
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.auth__forgot:hover {
  text-decoration: underline;
}

.auth__error {
  background: color-mix(in srgb, var(--oj-red) 12%, white);
  color: #a3243a;
  border: 1px solid color-mix(in srgb, var(--oj-red) 35%, white);
  border-radius: var(--oj-radius-sm);
  padding: 11px 14px;
  margin: 0 0 16px;
  font-weight: 600;
  font-size: 0.92rem;
}

#submitBtn[aria-busy="true"] {
  opacity: 0.7;
  pointer-events: none;
}

/* Demo hesap çipleri */
.auth__demo {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed var(--oj-line);
}

.auth__demo p {
  margin: 0 0 10px;
  color: var(--oj-muted);
  font-size: 0.88rem;
}

.auth__demo-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.demo-chip {
  border: 2px solid var(--oj-line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--oj-blue-deep);
}

.demo-chip:hover {
  border-color: var(--oj-blue);
  background: var(--oj-sky-2);
}

.auth__foot {
  text-align: center;
  margin: 22px 0 0;
}

.auth__foot a {
  font-weight: 600;
}

/* Responsive: sol paneli mobilde gizle */
@media (max-width: 860px) {
  .auth {
    grid-template-columns: 1fr;
  }

  .auth__side {
    display: none;
  }

  .auth__panel {
    background: var(--oj-sky);
  }
}

@media (max-width: 480px) {
  .auth__card {
    padding: 28px 20px;
    box-shadow: none;
    border: 0;
    background: transparent;
  }

  .auth__panel {
    padding: 20px 16px;
    align-items: flex-start;
    padding-top: 40px;
  }
}