/* Reset */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* Sayfa ortala */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #23242a;
}

/* Ana kutu */
.box {
  position: relative;
  width: 370px;
  min-height: 540px;
  background: #1c1c1c;
  border-radius: 50px 5px;
  overflow: hidden;
}

/* Animasyonlu çerçeve */
.box::before,
.box::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 370px;
  height: 500px;
  background: linear-gradient(60deg, transparent, #45f3ff, #45f3ff);
  transform-origin: bottom right;
  animation: animate 6s linear infinite;
}

.box::after {
  background: linear-gradient(60deg, transparent, #d9138a, #d9138a);
  animation-delay: -3s;
}

@keyframes animate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Form */
form {
  position: absolute;
  inset: 2px;
  background: #28292d;
  border-radius: 50px 5px;
  z-index: 10;
  padding: 28px 28px 20px 28px;
  display: flex;
  flex-direction: column;
}

/* Form üst içerik */
form .form-scroll {
  flex: 1 1 auto;
}

/* Başlık */
.title h1 {
  color: #45f3ff;
  font-size: 2rem;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 20px;
}

.title .subtitle {
  color: #9eb3b5;
  font-size: 0.9rem;
  margin-top: -10px;
}

/* Hata mesajı */
.form-error {
  width: 100%;
  padding: 10px 15px;
  margin-bottom: 10px;
  background: rgba(217, 19, 138, 0.2);
  border: 1px solid #d9138a;
  border-radius: 15px;
  color: #ff6b9d;
  font-size: 0.9rem;
}

/* Input alanları */
form .input-box {
  width: 100%;
  margin-top: 20px;
}

form .input-box input[type="text"],
form .input-box input[type="password"] {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  outline: none;
  border-radius: 15px;
  padding: 10px 20px;
  font-size: 1rem;
  margin: 10px 0;
  color: white;
}

form .input-box input::placeholder {
  color: #cdd1d2;
}

/* Şifre alanı – göz ikonu sağda, dikeyde ortalı */
form .input-box .password-wrap {
  position: relative;
  margin: 10px 0;
}

form .input-box .password-wrap input {
  margin: 0;
  padding: 10px 48px 10px 20px;
  display: block;
}

form .input-box .password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  color: #9eb3b5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

form .input-box .password-toggle:hover {
  color: #45f3ff;
}

form .input-box .password-toggle:focus {
  outline: none;
}

form .input-box .password-toggle [hidden] {
  display: none !important;
}

form .input-box .password-toggle svg {
  display: block;
}


/* Giriş butonu – sade, gölgesiz */
form .input-box input[type="submit"] {
  width: 100%;
  background-color: #45f3ff;
  cursor: pointer;
  color: #16100e;
  border: none;
  border-radius: 15px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  margin: 10px 0 0 0;
  appearance: none;
  -webkit-appearance: none;
}

form .input-box input[type="submit"]:hover {
  background-color: #3de0eb;
}

/* Alt link – her zaman formun en altında */
form .link-text {
  margin-top: auto;
  padding: 12px 0 4px 0;
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgb(103, 173, 183);
  font-size: 0.85rem;
}

form .link-text a {
  text-decoration: none;
  color: rgb(153, 41, 99);
  font-weight: 700;
}

form .link-text a:hover {
  color: #d9138a;
}

/* Etiket rengi */
.label-color {
  color: #9eb3b5;
}
