/* -------------------- Temel -------------------- */
@import url("https://fonts.googleapis.com/css2?family=El+Messiri:wght@700&display=swap");

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

body {
  background: #031323;
  overflow-x: hidden;
  overflow-y: auto;
}

.fas {
  width: 32px;
}

/* -------------------- Arka Plan -------------------- */
section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradient 10s ease infinite;
}

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* -------------------- Kare Animasyonu -------------------- */
.box {
  position: relative;
}

.box .square {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  animation: square 10s linear infinite;
  animation-delay: calc(-1s * var(--i));
}

@keyframes square {
  0%, 100% { transform: translateY(-20px); }
  50% { transform: translateY(20px); }
}

/* Kare boyutları */
.box .square:nth-child(1) { width: 100px; height: 100px; top: -15px; right: -45px; }
.box .square:nth-child(2) { width: 150px; height: 150px; top: 105px; left: -125px; z-index: 2; }
.box .square:nth-child(3) { width: 60px; height: 60px; bottom: 85px; right: -45px; z-index: 2; }
.box .square:nth-child(4) { width: 50px; height: 50px; bottom: 35px; left: -95px; }
.box .square:nth-child(5) { width: 50px; height: 50px; top: -15px; left: -25px; }
.box .square:nth-child(6) { width: 85px; height: 85px; top: 165px; right: -155px; z-index: 2; }

/* -------------------- Container -------------------- */
.container {
  position: relative;
  width: 320px;        /* SABİT GENİŞLİK */
  max-width: 90%;      /* Mobil güvenlik */
  min-height: 380px;
  padding: 25px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2);
}

/* -------------------- Form -------------------- */
.form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  width: 100%;
}

#login_logo {
  max-width: 160px;
  height: auto;
  margin-bottom: 15px;
}

.form-header p {
  font-size: 1rem;
  text-align: center;
  color: #fff;
}

/* Input Box */
.form .inputBx {
  position: relative;
  width: 100%;
  max-width: 260px;   /* DARALTILDI */
  margin: 0 auto 15px auto;
}

.form .inputBx input {
  width: 100% !important;
  padding: 8px 10px 8px 35px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form .inputBx span {
  position: absolute;
  left: 35px;
  top: 8px;
  color: #fff;
  transition: 0.3s;
  pointer-events: none;
}

.form .inputBx input:focus ~ span,
.form .inputBx input:valid ~ span {
  transform: translateY(-20px);
  font-size: 12px;
}

/* Parola göster/gizle ikon */
.form .inputBx .password-control {
  position: absolute;
  top: 11px;
  right: 10px;
  width: 20px;
  height: 20px;
  background: url(control/login/yildiz/view.svg) no-repeat;
  cursor: pointer;
  transition: 0.3s;
}

.form .inputBx .view {
  background: url(control/login/yildiz/no-view.svg) no-repeat;
}

.form .inputBx .fas {
  position: absolute;
  top: 13px;
  left: 10px;
  color: black;
}

/* -------------------- Buttons -------------------- */
.l_buton2, .l_buton3 {
  width: 170px;
  padding: 0.5rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  background-color: #00c1b3;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin: 0.5rem auto;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.l_buton2:hover, .l_buton3:hover {
  background-color: #00a299;
  transform: scale(1.05);
}

/* Glass Buttons */
.btn-glass {
  width: 150px;
  padding: 6px 12px;
  margin: 0.5rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.lg-center {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-glass:hover {
  background: rgba(255,255,255,0.3);
  color: black;
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(255,255,255,0.3);
}

/* -------------------- Responsive -------------------- */
@media (max-width: 480px) {
  .container {
    width: 90%;
    padding: 20px;
  }

  .form .inputBx {
    max-width: 230px;
  }

  .l_buton2, .l_buton3, .btn-glass {
    width: 130px;
    font-size: 0.8rem;
  }

  .form .inputBx input {
    font-size: 14px;
  }
}