*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red: #E31E24;
  --blue: #007AB8;
  --blue-dark: #004F75;
  --blue-darker: #003C5A;
  --blue-deepest: #002A3E;
  --purple: #6B21A8;
  --sky: #38BDF8;
  --gold: #c9a962;
  --gold-light: #dbc07a;
  --sidebar-bg: #1a1a1a;
  --sidebar-bg-deep: #121212;
  --sidebar-brand-bg: #232325;
  --white: #ffffff;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.layout {
  display: flex;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

/* ── Sol Panel ── */
.panel-left {
  display: none;
  position: relative;
  width: 50%;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(201, 169, 98, 0.09) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 100%, rgba(201, 169, 98, 0.05) 0%, transparent 40%),
    linear-gradient(165deg, var(--sidebar-bg) 0%, var(--sidebar-bg-deep) 100%);
}

@media (min-width: 1024px) {
  .panel-left {
    display: flex;
  }
}

.panel-left-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-height: 0;
  padding: 1.5rem 2.25rem 1.125rem;
}

.gradient-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--gold-dark, #a8893f), var(--gold), var(--gold-light));
}

.login-brand {
  position: relative;
  flex-shrink: 0;
  text-align: center;
  padding-top: 0.25rem;
}

.login-brand::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(280px, 80%);
  height: 72px;
  background: radial-gradient(ellipse, rgba(201, 169, 98, 0.14) 0%, transparent 72%);
  pointer-events: none;
}

.login-logo {
  position: relative;
  width: 100%;
  max-width: 168px;
  max-height: 68px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.brand-tagline {
  position: relative;
  margin-top: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.01em;
}

.logo-block {
  display: block;
  width: 100%;
  line-height: 0;
}

.logo-subtitle {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: rgba(201, 169, 98, 0.55);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.features-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  padding: 0.75rem 0;
}

.blur-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  pointer-events: none;
}

.blur-circle-top {
  top: -48px;
  left: -48px;
  width: 256px;
  height: 256px;
  background: rgba(201, 169, 98, 0.06);
}

.blur-circle-bottom {
  bottom: 0;
  right: 0;
  width: 192px;
  height: 192px;
  background: rgba(201, 169, 98, 0.04);
}

.features {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4375rem;
}

.feature {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.4375rem 0.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(201, 169, 98, 0.1);
}

.feature-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(201, 169, 98, 0.18), rgba(201, 169, 98, 0.06));
  border: 1px solid rgba(201, 169, 98, 0.2);
  color: var(--gold-light);
}

.feature-icon svg {
  width: 14px;
  height: 14px;
}

.feature h3 {
  font-size: 0.6875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.feature p {
  display: none;
}

.panel-left-footer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(201, 169, 98, 0.1);
  text-align: center;
}

.copyright {
  font-size: 0.6875rem;
  color: rgba(201, 169, 98, 0.38);
  line-height: 1.4;
}
.legal-link { color: rgba(201, 169, 98, 0.55); text-decoration: none; }
.legal-link:hover { color: rgba(201, 169, 98, 0.85); text-decoration: underline; }

@media (min-width: 1280px) {
  .panel-left-inner {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .login-logo {
    max-width: 184px;
    max-height: 74px;
  }

  .brand-tagline {
    font-size: 0.875rem;
  }

  .features {
    gap: 0.5rem;
  }

  .feature {
    padding: 0.5rem 0.625rem;
  }

  .feature h3 {
    font-size: 0.75rem;
  }
}

/* ── Sağ Panel ── */
.panel-right {
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
  background: var(--sidebar-bg-deep);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .panel-right {
    width: 50%;
  }
}

.login-container {
  width: 100%;
  max-width: 384px;
  max-height: 100%;
}

.mobile-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  .mobile-logo {
    display: none;
  }
}

.mobile-logo-box {
  border-radius: 12px;
  background: var(--sidebar-brand-bg);
  padding: 0;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(201, 169, 98, 0.12);
}

.login-logo-sm {
  width: 100%;
  max-width: 160px;
  max-height: 64px;
  object-fit: contain;
}

.demo-box {
  padding: 0.625rem 0.75rem;
  border-radius: 8px;
  background: rgba(201, 169, 98, 0.08);
  border: 1px solid rgba(201, 169, 98, 0.22);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.45;
}

.demo-box p {
  margin: 0;
}

.demo-box-title {
  margin-bottom: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold-light);
}

.demo-fill-btn {
  margin-top: 0.5rem;
  padding: 0.3rem 0.625rem;
  border: 1px solid rgba(201, 169, 98, 0.35);
  border-radius: 6px;
  background: rgba(201, 169, 98, 0.12);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}

.demo-fill-btn:hover {
  background: rgba(56, 189, 248, 0.2);
}

.form-error {
  font-size: 0.8125rem;
  color: #fca5a5;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.form-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
}

.form-header p {
  margin-top: 2px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  height: 40px;
  padding: 0 12px 0 40px;
  border-radius: 6px;
  border: 1px solid var(--blue-dark);
  background: var(--blue-darker);
  color: var(--white);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.input-wrapper input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(0, 122, 184, 0.3);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 40px;
  padding: 0 1rem;
  border: none;
  border-radius: 6px;
  background: linear-gradient(to right, #a8893f, var(--gold));
  color: #1a1a1a;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(201, 169, 98, 0.35);
  transition: opacity 0.2s, transform 0.1s;
}

.btn-submit:hover {
  opacity: 0.92;
}

.btn-submit:active {
  transform: translateY(1px);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.register-link {
  margin-top: 0.875rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.register-link p,
.muted-login-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  padding: 0;
  border: none;
  background: none;
  color: var(--gold-light);
  font-size: 0.875rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.025em;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: text-decoration 0.2s;
}

.link-btn:hover {
  text-decoration: none;
}

.mobile-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.mobile-footer img {
  object-fit: contain;
  opacity: 0.5;
}

.mobile-footer p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.2);
  text-align: center;
}

@media (min-width: 1024px) {
  .mobile-footer {
    display: none;
  }
}

@media (max-height: 720px) {
  .panel-left-inner {
    padding-top: 1rem;
    padding-bottom: 0.75rem;
  }

  .login-logo {
    max-width: 148px;
    max-height: 58px;
  }

  .brand-tagline {
    margin-top: 0.5rem;
    font-size: 0.75rem;
  }

  .features-wrap {
    padding: 0.375rem 0;
  }

  .features {
    gap: 0.3125rem;
  }

  .feature {
    padding: 0.3125rem 0.4375rem;
  }

  .feature-icon {
    width: 24px;
    height: 24px;
  }

  .feature-icon svg {
    width: 12px;
    height: 12px;
  }

  .feature h3 {
    font-size: 0.625rem;
  }

  .panel-left-footer {
    padding-top: 0.5rem;
  }

  .login-form {
    gap: 0.65rem;
  }

  .form-header h2 {
    font-size: 1.125rem;
  }
}
