/* login-styles.css */
body.login-body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top left, rgba(74, 28, 64, 0.6), rgba(46, 13, 42, 0.95));
  color: #2E0D2A;
}

.login-feedback {
  max-width: 520px;
  margin: 1.5rem auto;
  border-radius: 16px;
  box-shadow: 0 18px 32px rgba(29, 5, 27, 0.18);
  background: rgba(255, 255, 255, 0.92);
}

.auth-wrapper {
  width: 100%;
  max-width: 480px;
  padding: 2rem;
  box-sizing: border-box;
}

.auth-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 20px;
  box-shadow: 0 24px 45px rgba(29, 5, 27, 0.25);
  padding: 2.75rem 2.5rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 1px solid rgba(74, 28, 64, 0.08);
  pointer-events: none;
}

.brand-panel {
  text-align: center;
  margin-bottom: 2rem;
}

.brand-logo {
  width: 90px;
  height: 90px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(74, 28, 64, 0.1), rgba(74, 28, 64, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 4px 12px rgba(255, 255, 255, 0.35);
}

.brand-logo img {
  width: 60px;
  height: auto;
}

.brand-title {
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0;
  color: #2E0D2A;
}

.brand-tagline {
  margin: 0.6rem 0 0;
  color: #6d5d69;
  font-size: 0.95rem;
}

.form-box {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-box h2 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #4A1C40;
  margin-bottom: 1.5rem;
}

.form-box form {
  width: 100%;
  max-width: 300px;
  margin: 0;
}

.input-container {
  position: relative;
  margin-bottom: 1.3rem;
  width: 100%;
}

.input-container i {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: #7f6c7b;
  font-size: 0.95rem;
  pointer-events: none;
}

.input-container input {
  width: 100%;
  padding: 0.95rem 0.95rem 0.95rem 2.85rem;
  border: 1px solid rgba(74, 28, 64, 0.25);
  border-radius: 12px;
  font-size: 0.98rem;
  color: #2E0D2A;
  background-color: rgba(255, 255, 255, 0.85);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.input-container input::placeholder {
  color: #a08ea4;
}

.input-container { position: relative; }

.input-container .toggle-password {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  border: none;
  background: linear-gradient(135deg,#4A1C40,#2E0D2A);
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 9999; /* ensure it sits above everything */
  box-shadow: 0 6px 18px rgba(46,13,42,0.18);
  border-radius: 10px;
  min-width: 40px;
  min-height: 40px;
}

.input-container .toggle-password svg { display: block; stroke: #fff; width:18px; height:18px; }

/* Ensure the input has right padding to make room for toggle */
.input-container input { padding-right: 5rem; }

.input-container input:focus {
  outline: none;
  border-color: #4A1C40;
  box-shadow: 0 0 0 4px rgba(74, 28, 64, 0.15);
  background-color: #fff;
}

.form-meta {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.75rem;
}

.muted-link {
  font-size: 0.9rem;
  color: #70516b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.muted-link:hover {
  color: #4A1C40;
}

.btn {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  background: linear-gradient(135deg, #4A1C40, #2E0D2A);
  color: #ffffff;
  border: none;
  padding: 0.95rem;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 14px 24px rgba(46, 13, 42, 0.25);
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 18px 28px rgba(46, 13, 42, 0.3);
}

.btn:active {
  transform: translateY(0);
}

@media (max-width: 480px) {
  .auth-wrapper {
    padding: 1.5rem;
  }

  .auth-card {
    padding: 2.25rem 1.75rem 2rem;
  }

  .brand-title {
    font-size: 1.6rem;
  }
}
