/* ----------------- Password Card ----------------- */
.password-card {
  display: flex;
  flex-direction: column;
  align-items: center;       /* Input ve buttonları yatayda ortalar */
  justify-content: center;   /* Dilersen dikeyde de ortalayabilir */
  background-color: #fff;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 400px;          /* Maksimum genişlik */
  margin: 50px auto;         /* Sayfa ortası */
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.password-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.password-card h2 {
  font-family: 'Arial', sans-serif;
  color: #333;
  margin-bottom: 30px;
  font-weight: 700;
}

/* ----------------- Input Grupları ----------------- */
.input-group {
  position: relative;
  margin-bottom: 25px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;       /* Label ve input yatayda ortalanır */
}

.input-group input {
  width: 100%;
  max-width: 320px;          /* Kutucuk taşmayı önler */
  padding: 14px 45px 14px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  font-family: 'Arial', sans-serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group input:focus {
  border-color: #74ebd5;
  box-shadow: 0 0 8px rgba(116,235,213,0.4);
  outline: none;
}

/* Label animasyonu */
.input-group label {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 14px;
  pointer-events: none;
  transition: 0.3s ease all;
}

/* Label yukarı kayma efekti */
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
  top: -10px;
  left: 10px;
  font-size: 12px;
  color: #74ebd5;
  background-color: #fff;
  padding: 0 5px;
  border-radius: 4px;
}

/* Icon inside label */
.input-group label i {
  margin-right: 5px;
}

/* ----------------- Submit Button ----------------- */
.password-card button {
  width: 100%;
  max-width: 320px;           /* Button taşmayı önler */
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #74ebd5, #ACB6E5);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.password-card button:hover {
  background: linear-gradient(90deg, #67d6c1, #91a8e1);
  transform: translateY(-2px);
}

/* ----------------- Mesaj ----------------- */
.password-card .message {
  margin-top: 15px;
  font-size: 14px;
  color: #d9534f;
}

.password-card .message.success {
  color: #28a745;
}

.has-submenu {
    position: relative; /* submenu konumunu buna göre ayarlayacağız */
}

.submenu {
    position: absolute;
    top: 0; /* Ayarlar linkiyle hizalı */
    left: 100%; /* sağa doğru açılacak */
    background: #2c2c2c;
    padding: 5px 0;
    margin: 0;
    list-style: none;
    min-width: 160px;
    border-radius: 6px;
    display: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 1000;
}

.submenu-item {
    margin: 0;
}


.submenu-link {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    color: #ddd;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.submenu-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}


/* ----------------- Responsive ----------------- */
@media screen and (max-width: 480px) {
  .password-card {
    padding: 30px 20px;
    margin: 20px;
  }
  .password-card h2 {
    font-size: 20px;
  }
  .input-group input {
    font-size: 14px;
    padding: 12px 40px 12px 12px;
  }
  .password-card button {
    font-size: 14px;
    padding: 12px;
  }
}
