/* ─── TeklifDT Giriş — prod, canlı teal tema ─── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800&display=swap');

:root {
  --font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  --primary: #0d9488;
  --primary-light: #14b8a6;
  --primary-dark: #0f766e;
  --primary-deep: #115e59;
  --accent: #f59e0b;
  --accent-soft: #fffbeb;
  --violet: #7c3aed;
  --blue: #2563eb;
  --rose: #e11d48;
  --page-bg: #f4f7fb;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: rgba(148, 163, 184, 0.28);
  --input-bg: #f8fafc;
  --shadow-card: 0 24px 64px rgba(15, 23, 42, 0.12), 0 8px 24px rgba(13, 148, 136, 0.08);
  --radius-xl: 24px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
  background: #064e3b;
}

body.login-page {
  font-family: var(--font-family);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  position: relative;
  overflow-x: hidden;
  background: linear-gradient(
    165deg,
    #ecfdf5 0%,
    #d1fae5 18%,
    #a7f3d0 38%,
    #5eead4 58%,
    #14b8a6 78%,
    #0f766e 92%,
    #064e3b 100%
  );
  -webkit-font-smoothing: antialiased;
}

body.login-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 12% 18%, rgba(255, 255, 255, 0.45), transparent 60%),
    radial-gradient(ellipse 50% 40% at 88% 82%, rgba(6, 78, 59, 0.35), transparent 55%),
    radial-gradient(ellipse 35% 30% at 72% 22%, rgba(20, 184, 166, 0.2), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

body.login-page::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2306474a' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.login-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  max-width: 920px;
  min-height: 520px;
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* ─── Sol panel — minimal şık ─── */
.login-sidebar {
  flex: 1;
  max-width: 42%;
  background: linear-gradient(165deg, #0f766e 0%, #0d9488 55%, #134e4a 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
  color: #fff;
  overflow: hidden;
}

.login-sidebar::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 68%);
  top: -120px;
  right: -80px;
  pointer-events: none;
}

.login-sidebar::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.35), transparent 70%);
  bottom: -60px;
  left: -40px;
  pointer-events: none;
}

.sidebar-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.12), transparent 45%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.12), transparent 50%);
  pointer-events: none;
}

.sidebar-content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidebar-logo {
  margin-bottom: 1.5rem;
}

.logo-img-light {
  max-height: 52px;
  max-width: 180px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.logo-icon-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 1.65rem;
  color: #ccfbf1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.sidebar-title {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 0%, #fffbeb 55%, #fef3c7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sidebar-tagline {
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(254, 243, 199, 0.85) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sidebar-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.sidebar-icon-pill {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #d1fae5;
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.sidebar-icon-pill:nth-child(1) { color: #ecfdf5; }
.sidebar-icon-pill:nth-child(2) { color: #ccfbf1; }
.sidebar-icon-pill:nth-child(3) { color: #a7f3d0; }

.sidebar-icon-pill:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
}

/* ─── Sağ panel — form ─── */
.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2.75rem;
  background: #ffffff;
}

.form-container {
  width: 100%;
  max-width: 380px;
}

.mobile-logo-area {
  display: none;
  margin-bottom: 1.25rem;
  text-align: center;
}

.logo-img-dark {
  max-height: 48px;
  max-width: 160px;
  object-fit: contain;
}

.logo-icon-dark-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  border-radius: 14px;
  color: #fff;
  font-size: 1.45rem;
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.35);
}

.form-header {
  margin-bottom: 1.75rem;
}

.login-main .form-header h2 {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  letter-spacing: -0.03em;
  color: #1c1917;
}

.login-main .form-header p {
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 500;
  color: #57534e;
}

.alert-box {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, #fef2f2, #fff1f2);
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  color: #b91c1c;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.35rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.login-main .form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #292524;
}

.login-main .input-icon-wrapper > i:first-child {
  color: #b45309;
  opacity: 1;
}

.login-main .input-icon-wrapper input {
  color: #0f172a;
  background: #ffffff;
  border-color: #d6d3d1;
}

.login-main .input-icon-wrapper input:focus {
  border-color: #d97706;
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
  background: #ffffff;
}

.login-main .input-icon-wrapper input::placeholder {
  color: #78716c;
}

.login-main .btn-eye {
  color: #78716c;
}

.login-main .btn-eye:hover {
  color: #b45309;
  background: rgba(217, 119, 6, 0.08);
}

.login-main .btn-primary {
  background: linear-gradient(135deg, #ea580c 0%, #d97706 50%, #b45309 100%);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(180, 83, 9, 0.28);
}

.login-main .btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 10px 26px rgba(180, 83, 9, 0.35);
}

.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrapper > i:first-child {
  position: absolute;
  left: 1rem;
  color: var(--primary);
  font-size: 1rem;
  pointer-events: none;
  opacity: 0.85;
}

.input-icon-wrapper input {
  width: 100%;
  padding: 0.78rem 2.75rem 0.78rem 2.65rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-main);
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input-icon-wrapper input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
  background: #fff;
}

.input-icon-wrapper input::placeholder {
  color: #94a3b8;
}

.btn-eye {
  position: absolute;
  right: 0.45rem;
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0.45rem;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.btn-eye:hover {
  color: var(--primary-dark);
  background: rgba(13, 148, 136, 0.08);
}

.form-actions {
  margin-top: 1.65rem;
}

.btn-primary {
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.38);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 12px 28px rgba(13, 148, 136, 0.45);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0) scale(0.99);
}

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: login-spin 0.75s linear infinite;
}

.btn-primary.is-loading .btn-text {
  display: none;
}

.btn-primary.is-loading .spinner {
  display: block;
}

.login-main .btn-primary.is-loading .spinner {
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
}

@keyframes login-spin {
  to { transform: rotate(360deg); }
}

/* ─── Responsive ─── */
@media (max-width: 860px) {
  .login-wrapper {
    flex-direction: column;
    max-width: 440px;
    min-height: auto;
  }

  .login-sidebar {
    display: none;
  }

  .login-main {
    padding: 2rem 1.5rem 2.25rem;
  }

  .mobile-logo-area {
    display: block;
  }
}
