:root{
  --panel: rgba(23, 19, 32, 0.72);
  --panel-border: rgba(255, 255, 255, 0.18);
  --text: #e6e3ee;
  --muted: #b6b1c3;
  --purple: #6c4dd8;
  --purple-dark: #4a2fb3;
  --accent: #44d6c2;
  --danger: #ff7676;
}

/* Reset-ish */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: url("imgs/loginbkg.jpg") center/cover;
  color: var(--text);
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Verdana", sans-serif;
}

/* ===== Center shell ===== */
.auth-shell{
  min-height: 100vh;
  display: grid;
  color: rgba(237, 222, 255, 0.808);
  place-items: center;
  padding: 10%;
}

/* ===== Card ===== */
.auth-card{
  width: 100%;
  max-width: 420px;
  padding: 32px 28px;
  border-radius: 10%;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(50px);
  box-shadow: 10px 20px 60px 25px rgba(20, 9, 48, 0.514);
}

.SS {
  margin: 0 0 18px 0;
  text-align: center;
  letter-spacing: 1px;
}

.auth-title{
  margin: 0 0 18px 0;
  text-align: center;
  font-size: 32px;
  letter-spacing: 1px;
}

/* ===== Inputs with right-aligned icons ===== */
.input-wrap{
  position: relative;
  display: block;
  margin: 16px 0;
}

.input-wrap input{
  width: 100%;
  height: 50px;
  padding: 12px 48px 12px 16px; /* leave space for right icon */
  font-size: 16px;
  color: var(--text);
  background: rgba(255,255,255,0.06);
  border: 2px outset var(--panel-border);
  border-radius: 999px;
  outline: none;
}

.input-wrap input::placeholder {
  color: var(--muted);
  letter-spacing: 1px;
  font-weight: 500;
}

.input-wrap .icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  display: grid;
  place-items: center;
}

/* ===== Row helpers ===== */
.row{
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 8px 0 16px;
}

.row.between {
  justify-content: space-between;
}

.remember{
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
}

.remember input{
  width: 16px; height: 16px; accent-color: var(--text);
}

/* ===== Buttons & links ===== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
}

.btn.primary{
  color: var(--text);
  background: linear-gradient(50deg, #ef09f7b9, #3581be8e);
  box-shadow: 0 6px 24px rgba(31,26,43,0.5);
}

.btn.primary:hover {
  transform: translateY(-1px);
}

.btn.primary:active {
  transform: translateY(0);
}

.link{
  color: var(--text);
  text-decoration: none;
}

.link:hover {
  border-bottom-color: currentColor;
}

.muted {
  color: var(--muted);
}

.center {
  text-align: center;
}

.small {
  font-size: 14px;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .auth-card{ padding: 24px 20px; }
  .auth-title{ font-size: 28px; }
}
