:root{
  --purple:#370359;
  --light:#f7f5fb;
  --border:#d6d3dd;
}

/* RESET */
*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:system-ui, -apple-system, sans-serif;
  background:linear-gradient(135deg, #f7f5fb, #ede9f3);

  display:flex;
  align-items:center;
  justify-content:center;

  min-height:100vh;
  padding:20px;
}

/* CONTAINER */
.login-container{
  width:100%;
  max-width:420px;
}

/* CARD */
.login-card{
  background:#fff;
  padding:36px 32px;
  border-radius:16px;
  box-shadow:0 18px 40px rgba(0,0,0,0.12);
  text-align:center;
}

/* TITLES */
.login-card h2{
  color:var(--purple);
  margin-bottom:6px;
  font-weight:700;
}

.subtitle{
  font-size:14px;
  color:#666;
  margin-bottom:28px;
}

/* FORM */
.form-group{
  text-align:left;
  margin-bottom:18px;
}

label{
  font-size:13px;
  font-weight:600;
  margin-bottom:6px;
  display:block;
}

/* INPUT */
input{
  width:100%;
  height:44px;
  padding:0 12px;

  border-radius:10px;
  border:1px solid var(--border);

  font-size:14px;
  transition:all 0.2s ease;
}

input:focus{
  outline:none;
  border-color:var(--purple);
  box-shadow:0 0 0 3px rgba(55,3,89,0.08);
}

/* BUTTON */
button[type="submit"]{
  width:100%;
  height:48px;

  background:var(--purple);
  color:#fff;

  border:none;
  border-radius:12px;

  font-size:15px;
  font-weight:600;
  cursor:pointer;

  transition:all 0.2s ease;
}

button[type="submit"]:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 18px rgba(55,3,89,0.25);
}

/* HINT TEXT */
.hint{
  margin-top:18px;
  font-size:12px;
  color:#888;
}

/* BACK BUTTON */
.back-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;

  margin:14px auto 0;
  padding:10px 16px;

  border-radius:999px;
  text-decoration:none;

  font-size:13px;
  font-weight:600;

  color:var(--purple);
  background:rgba(55,3,89,0.06);
  border:1px solid rgba(55,3,89,0.15);

  transition:all 0.2s ease;
}

.back-btn:hover{
  background:rgba(55,3,89,0.1);
}

/* PASSWORD WRAP */
.password-wrap{
  position:relative;
  width:100%;
}

/* PASSWORD INPUT */
.password-wrap input{
  padding-right:44px; /* space for icon */
}

/* TOGGLE BUTTON */
.toggle-password{
  position:absolute;
  top:50%;
  right:10px;
  transform:translateY(-50%);

  width:30px;
  height:30px;

  display:flex;
  align-items:center;
  justify-content:center;

  border:none;
  background:transparent;
  cursor:pointer;
  padding:0;

  color:#777;
  transition:color 0.2s ease;
}

.toggle-password:hover{
  color:var(--purple);
}

/* ICON */
.toggle-password svg{
  width:20px;
  height:20px;
  display:block;
}

/* DEFAULT STATE */
.icon-eye-off{
  display:none;
}

/* LINKS */
a{
  color:var(--purple);
  text-decoration:none;
  font-weight:600;
}

a:hover{
  text-decoration:underline;
}

/* MOBILE OPTIMIZATION */
@media (max-width:480px){

  .login-card{
    padding:28px 20px;
    border-radius:14px;
  }

  input{
    height:42px;
  }

  button[type="submit"]{
    height:46px;
  }
}


.login-message {
  width: 100%;
  min-height: 18px;
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  color: #b00020;
  word-break: normal;
}