body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #667eea, #764ba2);
    font-family: Arial, sans-serif;
}

.login-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.input-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

input {
    width: 200px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    background: #667eea;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 200px;
}

button:hover {
    background: #5a67d8;
}

.error-message {
    color: red;
    margin-top: 10px;
    display: none;
}

.input-group > input,
.password-control > input {
  width: 100%;
  box-sizing: border-box;
  height: 40px;
  padding: .5rem .75rem;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* wrapper ของ password */
.password-control { position: relative; display: block; }
.password-control > input[data-toggle="password"]{
  width:100%; box-sizing:border-box; height:40px;
  padding:.5rem .75rem; padding-right:2.5rem;
  font-size:14px; border:1px solid #ccc; border-radius:4px;
}
.password-control .toggle-password{
  position:absolute; right:.375rem; top:0; bottom:0; margin:auto 0;
  width:2rem; height:2rem; background:transparent; border:0; padding:0;
  display:flex; align-items:center; justify-content:center; cursor:pointer; opacity:.9;
}

/* ไอคอนตา (show) */
.password-control .toggle-password::before{
  content:""; display:block; width:20px; height:20px;
  background-repeat:no-repeat; background-size:contain;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M12 5C6.5 5 2.5 9.2 2 12c.5 2.8 4.5 7 10 7s9.5-4.2 10-7c-.5-2.8-4.5-7-10-7zm0 11a4 4 0 1 1 0-8a4 4 0 0 1 0 8z'/%3E%3C/svg%3E");
}

/* ไอคอนซ่อนตา (hide) */
.password-control .toggle-password.is-showing::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M3 3l18 18l-1.4 1.4l-3-3C14.8 20 13.5 20.5 12 20.5C6.5 20.5 2.5 16.2 2 14c.3-1 1.3-2.6 2.9-4.2L1.6 4.4L3 3zm8.6 8.6l-3.2-3.2A4 4 0 0 0 8 12a4 4 0 0 0 4 4c.7 0 1.4-.2 2-.5l-2.4-2.4zM12 3.5c5.5 0 9.5 4.2 10 6.5c-.2.8-1 2.1-2.3 3.4l-1.5-1.5C19.3 10.7 20 9.7 20 9.5C19.5 7.2 15.5 3.5 12 3.5c-1.2 0-2.3.3-3.4.8L7 2.8C8.4 2.1 10.1 1.5 12 1.5z'/%3E%3C/svg%3E");
}
