* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #000 0%, #3a3a3a 50%, #000 100%);
}

/* CENTER LAYOUT TANPA SCROLL */
body{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

.page-center{
  flex:1;                      /* isi sisa tinggi layar */
  display:flex;
  align-items:center;
  justify-content:center;
}


/* CARD */
.card {
  width: 400px;
  max-width: 95%;
  max-height: 94vh;
  background: #121212;
  border-radius: 18px;
  padding: 22px;
  color: #ccc;
  overflow: hidden;
  

  box-shadow:
    0 0 25px rgba(255,255,255,0.15),
    0 0 80px rgba(255,255,255,0.08);
}

/* LOGO */
.logo { text-align: center; margin-bottom: 14px; }
.logo img { width: 150px; }

/* TITLE */
h1 {
  text-align: center;
  font-size: 16px;
  margin-bottom: 18px;
  line-height: 1.3;
}

/* LABEL */
label {
  font-size: 13px;
  color: #ccc;
  margin-bottom: 6px;
  display: block;
}

/* INPUT */
input {
  width: 100%;
  padding: 11px 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #111;
  color: #fff;
  font-size: 14px;
}

input:focus {
  outline: none;
  border-color: #fff;
  box-shadow: 0 0 6px rgba(255,255,255,0.3);
}

/* STEP */
.step { display: none; }
.step-active { display: block; }

/* BUTTON HIJAU */
.btn-next, .btn-register {
  width: 100%;
  padding: 12px;
  margin-top: 14px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;

  /* warna rata, bukan turun */
  background: linear-gradient(
    to bottom,
    #12c20a 0%,
    #0FB806 48%,
    #0FB806 52%,
    #0b5e03 100%
  );

  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
  transition: .2s;
}

/* BUTTON BACK */
.btn-back {
  width: 100%;
  padding: 11px;
  margin-top: 8px;
  margin-bottom: 8px;
  background: #fff;
  color: #000;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

.btn-back:hover {
  background: #000;
  color: #fff;
}

.auth-switch{
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: #aaa;
}

.auth-switch a{
  color: #19c15f;
  text-decoration: none;
  font-weight: 600;
  margin-left: 4px;
}

.auth-switch a:hover{
  text-decoration: underline;
}

/* FOOTER */
.app-footer{
  text-align:center;
  padding:14px 10px;
  font-size:12px;
  color:#bbb;
}

.top-back{
  margin-bottom: 14px;
}

.btn-top-back{
  display: inline-block;
  font-size: 13px;
  color: #bbb;
  text-decoration: none;
  transition: .2s;
}

.btn-top-back:hover{
  color: #19c15f;
  transform: translateX(-2px);
}

/* ================= FIX KHUSUS HP FOOTER SELALU BAWAH ================= */
/* ===== FIX FINAL KHUSUS HP ===== */
@media (max-width:768px){

  html, body{
    height:100dvh;
    overflow:hidden;
  }

  body{
    display:block;        /* matikan flex */
  }

  .page-center{
    height:auto;
    padding:14px;
  }

  .card{
    margin:0 auto;
  }

  .app-footer{
    position:fixed;
    bottom:0;
    left:0;
    width:100%;
    padding:12px 0;
    background:transparent;
  }
}
