.theme-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
}

.theme-visual {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      to right,
      rgba(240, 224, 198, 0) 0%,
      rgba(240, 224, 198, 0) 60%,
      rgba(240, 224, 198, 0.2) 75%,
      rgba(240, 224, 198, 0.72) 90%,
      rgba(240, 224, 198, 1) 100%
    ),
    url("kapi.webp") center / cover no-repeat;
}

.theme-auth {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 42px;
  overflow: visible;
  background:
    linear-gradient(
      to right,
      rgba(240, 224, 198, 1) 0%,
      rgba(240, 224, 198, 0.66) 16%,
      rgba(240, 224, 198, 0.35) 28%,
      rgba(240, 224, 198, 0) 100%
    );
}

.theme-auth::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background:
    linear-gradient(
      to right,
      rgba(240, 224, 198, 1) 0%,
      rgba(240, 224, 198, 0.45) 5%,
      rgba(240, 224, 198, 0) 20%
    ),
    url("pattern-beyaz.png") center / 40px 40px repeat;
}

.theme-card {
  position: relative;
  z-index: 1;
  width: min(510px, 100%);
  border-radius: 24px;
  background: rgba(251, 246, 237, 0.7);
  box-shadow: var(--mk-shadow);
  font-family: "Georgia";
}

.theme-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 84px;
}

.theme-brand-mark {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.theme-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.theme-brand-title {
  margin: 0;
  font-family: "Georgia";
  font-size: clamp(2.45rem, 2.05rem + 0.9vw, 2.95rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--mk-text);
  line-height: 1;
  text-indent: 0.28em;
}

.theme-brand-subtitle {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--mk-accent-strong);
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .theme-shell {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(240px, 42vh) auto;
  }

  .theme-visual {
    display: block;
    min-height: 240px;
    background: url("kapi.webp") center 70% / cover no-repeat;
  }

  .theme-auth {
    align-items: flex-start;
    padding: 0 20px 24px;
    margin-top: -34px;
    background: transparent;
  }

  .theme-auth::before {
    display: none;
  }

  .theme-card {
    width: min(620px, 100%);
    border-radius: 28px 28px 20px 20px;
    background: rgb(251, 246, 237);
    border:none !important;
  }
}

@media (max-width: 640px) {
  .theme-shell {
    grid-template-rows: minmax(200px, 30vh) auto;
  }

  .theme-visual {
    min-height: 250px;
  }

  .theme-auth {
    padding: 0 12px 20px;
    margin-top: -26px;
  }

  .theme-card {
    width: 100%;
    min-height: auto;
    border-radius: 26px 26px 0px 0px;
    border: 1px solid rgba(200, 200, 200, 0.55);
    box-shadow: 0 -1px 5px rgba(251, 246, 237, 0.05);
    padding:16px 32px;
  }

  .theme-brand{
    gap:0;
  }

}

.login-page .container {
  align-items: stretch;
}

.login-page .form-side {
  padding: 36px;
}

.login-page .language-selector {
  position: relative;
  padding: 20px 20px 0;
  text-align: right;
}

.login-page .language-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #d9c9a6;
  background: #f6f1e5;
  color: var(--mk-text);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(58, 46, 31, 0.1);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.login-page .language-btn:hover {
  border-color: #ccb27a;
  background: #f9f4e8;
  box-shadow: 0 6px 14px rgba(58, 46, 31, 0.14);
}

.login-page .language-btn .current-flag {
  border-radius: 2px;
}

.login-page .dropdown-arrow {
  transition: transform 0.2s ease;
}

.login-page .language-btn.active .dropdown-arrow {
  transform: rotate(180deg);
}

.login-page .language-dropdown {
  position: absolute;
  right: 20px;
  top: calc(100% + 6px);
  transform: translateY(-8px);
  width: min(210px, calc(100% - 32px));
  border-radius: 12px;
  border: 1px solid var(--mk-border);
  background: #fff;
  box-shadow: 0 14px 32px rgba(58, 46, 31, 0.18);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 10;
}

.login-page .language-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.login-page .language-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: none;
  background: transparent;
  font-size: 0.87rem;
  color: var(--mk-text);
  text-align: left;
  cursor: pointer;
}

.login-page .language-option:hover {
  background: #f6f1e8;
}

.login-page .language-option.selected {
  background: #efe3d0;
  font-weight: 700;
}

.login-page .form-container {
  max-width: 458px;
  margin: 0 auto;
  padding: 12px 40px 46px;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
}

.login-page #loginFormContainer,
.login-page #registerFormContainer,
.login-page #forgotPasswordContainer,
.login-page #totpContainer {
  animation: loginFadeIn 0.28s ease;
}

.login-page #registerFormContainer  h2{
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--mk-text);
  text-align: center;
  margin-bottom: 20px;
}


.login-page .subtitle {
  margin: 0 0 24px;
  font-size: 0.95rem;
  color: var(--mk-text-muted);
}

.login-page .form-group {
  margin-bottom: 24px;
}

.login-page .form-group label {
  display: block;
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 500;
  color: #3b3630;
  letter-spacing: 0.01em;
}

.login-page .input-with-icon,
.login-page .password-input {
  position: relative;
}

.login-page .form-group input {
  width: 100%;
  height: 60px;
  border-radius: 12px;
  border: 1.5px solid #d8d1c6;
  background: #f4f1ec;
  color: #3f3933;
  padding: 0 16px;
  font-size: 1rem;
  font-weight: 400;
}

.login-page .form-group input:focus {
  outline: none;
  border-color: #c8b89d;
  background: #f8f5f0;
  box-shadow: 0 0 0 2px rgba(185, 152, 106, 0.14);
}

.login-page .form-group input::placeholder {
  color: #b5ab9c;
  font-size: 1rem;
  font-weight: 400;
}

.login-page .input-with-icon input,
.login-page .password-input input {
  padding-left: 58px;
}

.login-page .password-input input {
  padding-right: 58px;
}

.login-page .input-icon {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  color: #9b8d77;
  line-height: 0;
}

.login-page .toggle-password {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #9b8d77;
  cursor: pointer;
}

.login-page .form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 28px;
}

.login-page .checkbox-container {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.98rem;
  color: #5e5750;
  cursor: pointer;
}

.login-page .checkbox-container input {
  display: none;
}

.login-page .checkmark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1.5px solid #cbc2b2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.login-page .checkbox-container input:checked + .checkmark {
  background: var(--mk-accent);
  border-color: var(--mk-accent);
}

.login-page .checkbox-container input:checked + .checkmark::after {
  content: "";
  width: 4px;
  height: 7px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 1px;
}

.login-page .forgot-password,
.login-page .signup-link a {
  color: var(--mk-accent-strong);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.98rem;
}

.login-page .forgot-password:hover,
.login-page .signup-link a:hover {
  text-decoration: underline;
}

.login-page .btn-primary {
  width: 100%;
  border: none;
  border-radius: 11px;
  height: 62px;
  font-family: "Georgia";
  background: var(--mk-accent);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 7px 16px rgba(163, 133, 79, 0.26);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.login-page .btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 10px 22px rgba(163, 133, 79, 0.42);
}

.login-page .btn-primary:active {
  transform: translateY(0);
}

.login-page .btn-primary:disabled {
  cursor: not-allowed;
  filter: grayscale(0.2);
}

.login-page .signup-link {
  margin-top: 44px;
  text-align: center;
  color: #4f4740;
  font-size: 0.98rem;
}

.login-page .info-text {
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(163, 133, 79, 0.2);
  background: rgba(245, 232, 207, 0.7);
  color: #6e5530;
  font-size: 0.82rem;
  line-height: 1.45;
}

.login-page .totp-icon {
  text-align: center;
  margin: 10px 0 18px;
}

.login-page .totp-icon svg {
  width: 100px;
  height: 100px;
}

.login-page #totpCode {
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: 10px;
  font-weight: 700;
}

.login-page .form-container::-webkit-scrollbar {
  width: 7px;
}

.login-page .form-container::-webkit-scrollbar-thumb {
  background: rgba(163, 133, 79, 0.44);
  border-radius: 10px;
}

@keyframes loginFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .login-page .form-side {
    padding: 0 20px 24px;
  }

  .login-page .language-selector {
    padding: 16px 16px 0;
  }

  .login-page .language-dropdown {
    right: 16px;
  }

  .login-page .form-container {
    max-height: none;
    overflow: visible;
    padding: 0px 28px 34px;
  }
}

@media (max-width: 640px) {
  .theme-visual {
    position: relative;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    overflow: hidden;
    min-height: 235px;
    background-position: center 64%;
  }

  .theme-visual::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 72px;
    background: linear-gradient(to bottom, rgba(251, 246, 237, 0) 0%, rgba(251, 246, 237, 0.66) 100%);
    pointer-events: none;
  }

  .login-page .form-side {
    padding: 0 0px 0px;
  }

  .login-page .language-selector {
    padding: 10px 12px 0;
    text-align: center;
    margin-top: -4px;
    z-index: 2;
  }

  .login-page .language-dropdown {
    right: 50%;
    transform: translateX(50%) translateY(-8px);
  }

  .login-page .language-dropdown.show {
    transform: translateX(50%) translateY(0);
  }

  .login-page .form-container {
    max-width: 100%;
    max-height: none;
    overflow: visible;
    padding: 6px 20px 26px;
  }

  .login-page h2 {
    font-size: 1.45rem;
  }

  .login-page .form-options {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .login-page .theme-brand{
    margin-bottom: 64px;
    gap: 6px;
  }

  .login-page .theme-brand-mark {
    width: 102px;
    height: 102px;
  }

  .login-page .theme-brand-title {
    font-size: 3.05rem;
    letter-spacing: 0.12em;
    text-indent: 0.12em;
    color: #18493d;
  }

  .login-page .form-group {
    margin-bottom: 18px;
  }

  .login-page .form-group label {
    margin-bottom: 9px;
    font-size: 0.97rem;
    color: #2e2a25;
  }

  .login-page .form-group input {
    height: 58px;
    border-radius: 14px;
    border: 1.3px solid #d6c8ab;
    background: #f6f0e3;
    font-size: 1rem;
  }

  .login-page .input-icon {
    left: 18px;
    color: #aa9973;
  }

  .login-page .toggle-password {
    right: 14px;
    color: #aa9973;
  }

  .login-page .form-options {
    margin: 4px 0 18px;
    align-items: center;
  }

  .login-page .checkbox-container {
    font-size: 0.97rem;
  }

  .login-page .checkmark {
    width: 21px;
    height: 21px;
    border-radius: 5px;
  }

  .login-page .forgot-password {
    font-size: 0.97rem;
  }

  .login-page .btn-primary {
    height: 60px;
    border-radius: 16px;
    font-size: 1.08rem;
    letter-spacing: 0.1em;
    box-shadow: 0 7px 16px rgba(163, 133, 79, 0.3);
  }

  .login-page .signup-link {
    margin-top: 18px;
    font-size: 0.97rem;
  }

  .login-page .signup-link a {
    font-size: 0.97rem;
  }

  .login-page #totpCode {
    letter-spacing: 6px;
  }
}

#forgotPasswordForm .btn-primary{
  font-size: 1em;
}

.captcha-widget{
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 15px;
}
