/* ============ BASE ============ */
* { box-sizing: border-box; font-family: system-ui, Arial, sans-serif; }

body {
  margin: 0;
  color: #eaf0ff;
  min-height: 100vh;
  background: #0b1220; /* fallback */
}

/* ============ PAGE (MOBILE FIRST) ============ */
.page {
  width: 100%;
  min-height: 100vh;
  padding: 16px;

  /* background image for mobile */
  background-image: url("https://tr.rbxcdn.com/180DAY-a4fb7b266105fa038d92bf425d58ee53/768/432/Image/Webp/noFilter");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
 

  
}

/* Dark overlay so text stays readable */
.page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.78);
  z-index: 0;
}

/* ============ CARD ============ */
.card {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 420px;

  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);

  /* tiny blur (optional, looks premium) */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ============ TEXT ============ */
h1 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.2;
}

p {
  margin: 0 0 14px;
  opacity: 0.92;
  font-size: 14px;
  line-height: 1.45;
}

label {
  display: block;
  margin: 14px 0 8px;
  opacity: 0.9;
  font-size: 14px;
}

/* ============ INPUTS / BUTTONS ============ */
input {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.26);
  color: #eaf0ff;
  outline: none;
  font-size: 15px;
}

input:focus {
  border-color: rgba(255,255,255,0.38);
}

button {
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  font-size: 15px;
  background: #3b82f6;
  color: white;
}

button.secondary {
  background: rgba(255,255,255,0.14);
}

/* ============ FEEDBACK ============ */
.error {
  margin-top: 10px;
  color: #ffb4b4;
  min-height: 18px;
  font-size: 13px;
}

.error.small {
  font-size: 12px;
  opacity: 0.85;
}

.hidden { display: none; }

.hint {
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.78;
}

/* ============ PROFILE (MOBILE STACK) ============ */
.profile {
  margin-top: 14px;
  display: flex;
  flex-direction: column;   /* ✅ stacked on mobile */
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.10);
  font-size: 26px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.k { opacity: 0.78; }

/* ============ TABLET / DESKTOP ============ */
@media (min-width: 768px) {
  .page {
    padding: 24px;
    background-image: url("bg-desktop.jpg"); /* bigger image */
    background-position: center;
  }

  .card {
    max-width: 520px;
    padding: 22px;
  }

  h1 { font-size: 24px; }
  p, label { font-size: 15px; }

  .profile {
    flex-direction: row;     /* ✅ row on desktop */
    align-items: center;
    gap: 12px;
  }

  .avatar {
    width: 64px;
    height: 64px;
    font-size: 28px;
  }
}
