@import url('https://eba.gov.tr/front/assets/vendor/figtree/figtree.css');

* {
  box-sizing: border-box;
}

html,
body.eba-login-page {
  margin: 0;
  min-height: 100vh;
  font-family: Figtree, 'Segoe UI', sans-serif;
  background: #f3f4f6;
  color: #181d27;
}

.eba-login-layout {
  display: flex;
  min-height: 100vh;
}

.eba-login-left {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: #f8f9fb;
}

.eba-login-left::before,
.eba-login-left::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(196, 24, 25, 0.07);
  pointer-events: none;
}

.eba-login-left::before {
  width: 520px;
  height: 520px;
  left: -120px;
  bottom: -80px;
}

.eba-login-left::after {
  width: 380px;
  height: 380px;
  left: 80px;
  bottom: 120px;
  background: rgba(196, 24, 25, 0.05);
}

.eba-login-brand {
  position: relative;
  z-index: 1;
  max-width: 420px;
}

.eba-login-brand img.eba-wordmark {
  height: 86px;
  width: auto;
  margin-bottom: 32px;
}

.eba-login-brand h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  color: #181d27;
}

.eba-login-brand p {
  margin: 0;
  font-size: 18px;
  color: #717680;
  line-height: 1.5;
}

.eba-login-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: #fff;
}

.eba-login-card {
  width: 100%;
  max-width: 420px;
}

.eba-field {
  margin-bottom: 18px;
}

.eba-field.has-error .eba-input-wrap input {
  border-color: #c41819;
  box-shadow: 0 0 0 3px rgba(196, 24, 25, 0.12);
}

.eba-field-error {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: #c41819;
  font-weight: 500;
}

.eba-field-error[hidden] {
  display: none;
}

.eba-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #535862;
}

.eba-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.eba-input-wrap svg.field-icon {
  position: absolute;
  left: 14px;
  width: 20px;
  height: 20px;
  color: #717680;
  pointer-events: none;
}

.eba-input-wrap input {
  width: 100%;
  height: 48px;
  border: 1px solid #d5d7da;
  border-radius: 10px;
  padding: 0 44px 0 44px;
  font: inherit;
  font-size: 15px;
  color: #181d27;
  background: #fff;
}

.eba-input-wrap input::placeholder {
  color: #a4a7ae;
}

.eba-input-wrap input:focus {
  outline: none;
  border-color: #e08b8b;
  box-shadow: 0 0 0 3px rgba(224, 139, 139, 0.25);
}

.eba-toggle-pass {
  position: absolute;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #717680;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.eba-forgot {
  display: block;
  text-align: center;
  margin: 4px 0 20px;
  color: #c41819;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.eba-forgot:hover {
  text-decoration: underline;
}

.giris-error {
  display: none;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 16px;
}

.giris-error.visible {
  display: block;
}

.eba-btn-primary {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 10px;
  background: #f0caca;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: not-allowed;
  box-shadow: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.eba-btn-primary.is-ready {
  background: #c41819;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(196, 24, 25, 0.35);
}

.eba-btn-primary.is-ready:hover {
  background: #a81415;
}

.eba-btn-primary:disabled {
  cursor: not-allowed;
}

.eba-btn-primary.is-ready:disabled {
  opacity: 0.75;
  cursor: wait;
}

.eba-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 16px;
  color: #717680;
  font-size: 13px;
}

.eba-divider::before,
.eba-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e9eaeb;
}

.eba-oauth-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.eba-oauth-btn {
  height: 52px;
  border: 1px solid #d5d7da;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  cursor: pointer;
}

.eba-oauth-btn img {
  max-height: 28px;
  max-width: 100%;
  object-fit: contain;
}

.eba-oauth-btn span.mebbis {
  font-weight: 800;
  font-size: 13px;
  color: #1e40af;
  letter-spacing: 0.02em;
}

.eba-alt-btn {
  width: 100%;
  height: 48px;
  margin-bottom: 10px;
  border: 1px solid #d5d7da;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #414651;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.eba-alt-btn img {
  height: 22px;
  width: auto;
}

@media (max-width: 960px) {
  .eba-login-layout {
    flex-direction: column;
  }
  .eba-login-left {
    min-height: auto;
    padding: 40px 24px 32px;
  }
  .eba-login-brand img.eba-wordmark {
    height: 56px;
  }
  .eba-login-right {
    padding-top: 8px;
    padding-bottom: 40px;
  }
}
