﻿body {
    font-family: 'Inter', sans-serif;
}

.invalid-form{
border-color: #dc3545;
padding-right: calc(1.5em + 0.75rem);
background-image: url(../images/invalid.svg);
background-repeat: no-repeat;
background-position: right calc(0.375em + 0.1875rem) center;
background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.valid-form{
    border-color: #198754;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url(../images/valid.svg);
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.identity-number{
    -webkit-appearance: none;
    margin: 0;
    -moz-appearance: textfield;
}
#sms-code{
    display: none;
}
.display-block{
    display: block;
}

/* Form için kart tasarımı */
main.form-signin {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  max-width: 480px;
}

/* Logo boyutlandırması */
.form-signin img {
  max-width: 170px;
  height: auto;
  margin-bottom: 3.5rem;
}

/* E-Muayene Başlığı için stil */
.form-signin h1.h3 {
  font-weight: 700;
  margin-bottom: 2rem;
}

/* Form etiketleri için stil */
#identity_number .form-label,
#passport_number .form-label {
    font-weight: bold;
}

/* Giriş alanları için kutu stili */
.input-area {
    background-color: #e9ecef;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* GÜVENLİK KODU HİZALAMA (ÇALIŞAN VERSİYON) */
#captcha {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin: 1rem 0;
  height: 40px;
}

#captcha input[type="text"],
#captcha img,
#captcha i {
    margin: auto 0;
}

#captcha input[type="text"] {
  height: 100%;
}

#captcha img {
  height: 100%;
  width: 90px;
}
#captcha i {
  font-size: 24px;
  line-height: 40px;
  color: #6c757d;
  cursor: pointer;
}
#captcha i:hover {
  color: #ae2856;
}


/* Devam Et Butonu için kurumsal renk uygulaması */
#continue {
  background-color: #ae2856;
  border-color: #ae2856;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem;
  transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}
#continue:hover {
  background-color: #932249;
  border-color: #932249;
}

/* Güvenli Bağlantı metni için stil */
.secure-connection-text {
  font-size: 12px;
  color: #198754;
  font-weight: 500;
}
.secure-connection-text .fa-lock {
  margin-right: 5px;
}

/* Eklenen KVKK metni için stil */
.kvkk-text {
  font-size: 12px;
  color: #6c757d;
  text-align: center;
  line-height: 1.5;
}

.copyright-text a {
  text-decoration: none;
  color: #6c757d;
  font-weight: bold;
}
.copyright-text a:hover {
  color: #ae2856;
}

/* YENİ: Masaüstü ve Geniş Ekranlar için Ortalama Kuralı */
@media (min-width: 769px) {
    body {
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 40px;
        padding-bottom: 40px;
    }
}


/* Mobil Cihazlar için Özel Düzenlemeler */
@media (max-width: 768px) {
  body {
      padding: 0 5px !important;
  }
  main.form-signin {
      max-width: 100%;
      padding: 1.5rem 1rem;
      box-shadow: none;
      border: 1px solid #e9ecef;
      border-top: none;
      border-bottom: none;
      border-radius: 0;
  }
  .form-signin img {
      max-width: 153px;
  }
  
  #captcha {
      display: flex;
      width: 100%;
  }

  #captcha input[type="text"] {
      flex: 1 1 50%;
      min-width: 120px;
  }
  
  .copyright-text {
      font-size: 11px;
  }
  h1.h3 {
      font-size: 1.5rem;
  }
  .input-area {
      padding: 1rem;
  }
}