@import url("https://fonts.googleapis.com/css2?family=Arimo:wght@400;600;700&display=swap");

:root {
  --text: #4a4a4a;
  --muted: #6a6a6a;
  --blue: #0071bc;
  --blue-dark: #045ead;
  --blue-light: #338ad6;
  --input-border: #a5a9b1;
  --line: #dddddd;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: "Arimo", sans-serif; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Arimo", sans-serif;
  font-size: 16px;
  color: var(--text);
  line-height: 1.4;
  background: linear-gradient(140deg, #ffffff 0%, #e8eaeb 86%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.page {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 8px;
}

.container {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 1.2rem 2rem;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 80px;
  padding-bottom: 8px;
}
.header-logo img { width: 285px; max-width: 100%; height: auto; display: block; }
.header-info { text-align: right; line-height: 1.35; }
.header-info strong { display: block; font-size: 13px; color: #000000; font-weight: 600; }
.header-info span { font-size: 12px; color: rgb(74, 74, 74); font-weight: 400; }

.giris-nav { border-bottom: 1px solid var(--line); margin-top: 16px; margin-bottom: 20px; }
.nav-toggle { display: none; }
.nav-list { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.nav-list > li > a:hover { color: var(--blue); text-decoration: none; }
.nav-list > li > a.active { color: var(--blue); border-bottom-color: var(--blue); }

.caret {
  display: inline-block;
  margin-left: 8px;
  border: 5px solid transparent;
  border-top-color: currentColor;
  border-bottom: 0;
}

.intro { font-size: 14.5px; line-height: 1.5; font-weight: 400; color: rgb(48, 54, 58); margin-bottom: 22px; padding: 0 8px; }
.intro a { font-weight: 600; color: rgb(0, 113, 188); }

.form-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.form-row > label { display: inline-flex; align-items: center; font-size: 14.4px; font-weight: 600; color: var(--text); }
.form-row > label::before { content: "\002A"; margin-right: 3px; color: #a5a5a5; font-weight: 400; font-size: 15px; line-height: 1; position: relative; top: 0.18em; }

.field { position: relative; display: flex; align-items: center; }
.field input {
  width: 100%;
  height: 45px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 17.6px;
  font-family: inherit;
  color: #000;
  outline: none;
}
.field input::placeholder { color: #9aa0a6; font-size: 15px; }
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(0, 113, 188, 0.15); }

.kb-toggle, .mask-toggle, .captcha-refresh, .captcha-audio {
  position: absolute;
  right: 8px;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent center / 20px no-repeat;
  cursor: pointer;
  opacity: 0.6;
}
.kb-toggle:hover, .mask-toggle:hover { opacity: 1; }

.mask-toggle {
  right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a4a4a' stroke-width='2'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}
.mask-toggle.hidden-on {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a4a4a' stroke-width='2'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20C5 20 1 12 1 12a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");
}
.kb-toggle {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a4a4a' stroke-width='1.6'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Cline x1='6' y1='10' x2='6' y2='10'/%3E%3Cline x1='10' y1='10' x2='10' y2='10'/%3E%3Cline x1='14' y1='10' x2='14' y2='10'/%3E%3Cline x1='18' y1='10' x2='18' y2='10'/%3E%3Cline x1='7' y1='14' x2='17' y2='14'/%3E%3C/svg%3E");
}

.hint { grid-column: 1 / -1; font-size: 13px; color: var(--muted); margin: -4px 0 16px; }
.form-row + .hint { margin-top: -8px; }

.captcha-field { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.captcha-top { display: flex; align-items: center; gap: 10px; }
.captcha-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  height: 50px;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(120deg, #d9d9d9 0%, #8f8f8f 100%);
}
.captcha-box canvas { display: block; cursor: pointer; width: 100%; height: 100%; }
.captcha-refresh {
  position: static;
  width: 26px; height: 26px;
  opacity: 0.85;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a4a4a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E");
}
.captcha-audio { display: none; }
.captcha-field input { width: 190px; }

.captcha-hint { margin-top: 4px; }

.forgot-row { margin-bottom: 22px; }
.forgot-link { font-weight: 600; text-decoration: underline; }

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 8px;
}
.btn {
  height: 45px;
  border-radius: 32px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-cancel {
  padding: 0 45px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: linear-gradient(120deg, #f4f4f4 0%, #d6d6d6 100%);
}
.btn-cancel:hover { filter: brightness(0.97); }
.btn-submit {
  padding: 0 35px;
  min-width: 200px;
  color: #fff;
  background: linear-gradient(120deg, var(--blue-light) 0%, var(--blue-dark) 80%);
  box-shadow: 0 4px 12px rgba(4, 94, 173, 0.3);
}
.btn-submit:hover { filter: brightness(1.05); }

.footer {
  width: 100%;
  flex-shrink: 0;
  background: #ffffff;
  box-shadow: 0 -10px 24px -4px rgba(0, 0, 0, 0.12), 0 -2px 6px rgba(0, 0, 0, 0.06);
  padding: 22px 16px;
}
.footer-inner {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.footer-copy { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13px; color: var(--text); }
.footer-logos { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-copy img { display: block; }
.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 24px;
  width: 100%;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.footer-links li { position: relative; }
.footer-links li + li::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 16px;
  background: var(--line);
}
.footer-links a { font-size: 13.5px; color: var(--text); }
.footer-links a:hover { color: var(--blue); }

.keyboard {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background: #f4f5f7;
  border: 1px solid #cdd2da;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  padding: 10px;
  z-index: 100;
  max-width: 95vw;
}
.kb-inner { display: flex; flex-wrap: wrap; gap: 6px; max-width: 520px; }
.kb-inner button {
  min-width: 38px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #cdd2da;
  border-radius: 6px;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
}
.kb-inner button:hover { background: #eef2f7; }
.kb-inner button.kb-wide { flex: 1; min-width: 70px; }
.kb-inner button.kb-ok { background: linear-gradient(120deg, var(--blue-light), var(--blue-dark)); color: #fff; border: none; }

@media (max-width: 767px) {
  .page { padding: 16px 22px; }
  .container { padding: 16px; border-radius: 8px; }

  .header { height: auto; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding-bottom: 4px; }
  .header-logo img { width: 235px; }
  .header-info {
    text-align: left;
    width: 100%;
    background: #f2f2f2;
    border-radius: 8px;
    padding: 5px 12px;
    line-height: 1.2;
  }
  .header-info strong { font-size: 12px; }
  .header-info span { font-size: 11px; }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 42px;
    padding: 0 14px;
    background: #fff;
    border: 2px solid var(--blue);
    border-radius: 8px;
    color: var(--blue);
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
  }
  .giris-nav { border-bottom: none; position: relative; }
  .nav-list {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-top: 4px;
    padding: 6px 0;
    z-index: 30;
  }
  .giris-nav.open .nav-list { display: flex; }
  .nav-list > li > a { height: 46px; width: 100%; border-bottom: none; padding: 0 16px; }
  .nav-list > li > a.active { background: #f2f6fb; border-bottom: none; }

  .form-row { grid-template-columns: 1fr; gap: 6px; margin-bottom: 14px; }
  .form-row > label { font-size: 14px; }
  .hint { margin: 0 0 12px; }
  .captcha-field { flex-direction: column; align-items: stretch; }
  .captcha-box { align-self: flex-start; }
  .captcha-field input { width: 100%; }

  .forgot-row .field { justify-content: flex-end; }
  .captcha-box { width: 200px; }
  .captcha-field input { width: 200px; }

  .form-actions { justify-content: space-between; gap: 14px; }
  .btn { padding: 0; }
  .btn-cancel { flex: 0 0 40%; }
  .btn-submit { flex: 1; min-width: 0; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .container { max-width: 480px; }
  .form-row { grid-template-columns: 130px 1fr; }
}
