body.page {
  display:flex;
  flex-direction:column;
  min-height:100vh;
  background:#f7f9fc;
  font-family:'Inter',sans-serif;
}

header.top .row {
  display:flex;
  justify-content:center;
  align-items:center;
  padding:16px 0;
}

header.top .brand img { 
  margin-right:8px; 
  vertical-align:middle; 
}

.main-center {
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.auth-card {
  width:100%;
  max-width:420px;
  border-radius:16px;
  padding:48px 36px;
  background:#fff;
  display:flex;
  flex-direction:column;
  gap:24px;
  box-shadow:0 25px 50px rgba(0,0,0,0.08);
  animation: fadeInUp .6s ease forwards;
}

.auth-card h2 {
  margin:0;
  text-align:center;
  font-size:2rem;
  color:#0b274f;
}

.form-row {
  display:flex;
  flex-direction:column;
  gap:20px;
  width:100%;
}

.input-wrapper {
  position:relative;
}

.input-wrapper input {
  width:100%;
  padding:14px 50px 14px 44px; 
  border:1px solid #dcdcdc;
  border-radius:12px;
  font-size:1rem;
  transition:0.3s all;
  color:#111;
  caret-color:#111;
  background:#fff;
}

.input-wrapper input:hover { border-color:#0b74de; }
.input-wrapper input:focus { 
  border-color:#0b74de; 
  box-shadow:0 6px 20px rgba(11,116,222,0.15); 
  outline:none; 
}

.input-wrapper input::placeholder { color:#999; }

.input-wrapper .icon {
  position:absolute;
  top:50%;
  left:14px;
  transform:translateY(-50%);
  width:20px;
  height:20px;
  color:#666;
}

.input-wrapper.password-wrapper .toggle-pass {
  position:absolute;
  top:50%;
  right:14px;
  transform:translateY(-50%);
  background:none;
  border:none;
  cursor:pointer;
  color:#666;
  width:28px;
  height:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:0.2s all;
}

.input-wrapper.password-wrapper .toggle-pass:hover { color:#0b74de; }

.hint { font-size:0.9rem; color:#666; margin-top:4px; }
.msg { padding:12px; border-radius:10px; font-size:0.95rem; text-align:center; }
.success { background:#e6ffef; border:1px solid #b7eac2; color:#1b7f3a; }
.warn { background:#fff4f2; border:1px solid #f3c0b8; color:#a33; }

.strength-bar { height:10px; border-radius:6px; background:#e9ecef; overflow:hidden; margin-top:8px; }
.strength-fill { height:100%; width:0%; transition:width .25s; background:linear-gradient(90deg,#ff4d4f,#ffb84d,#fff44d,#4cd964); }

.btn-row { display:flex; gap:12px; flex-wrap:wrap; justify-content:center; }
.btn { flex:1; padding:14px 18px; border-radius:12px; border:none; cursor:pointer; font-weight:600; text-align:center; transition:0.3s all; }
.btn.primary { background:#0b74de; color:#fff; }
.btn.primary:hover { background:#095bb5; }
.btn.ghost { background:transparent; border:1px solid #cfcfcf; color:#333; }
.btn.ghost:hover { background:#f0f0f0; }

@media (max-width:480px) {
  .auth-card { padding:28px 20px; margin:8px; }
  .btn-row { flex-direction:column; }
}

@keyframes fadeInUp {
  0% { opacity:0; transform:translateY(20px); }
  100% { opacity:1; transform:translateY(0); }
}

.back-btn {
  align-self:flex-start;
  font-size:0.95rem;
  padding:6px 14px;
  margin-bottom:12px;
  display:inline-block;
  border-radius:8px;
  border:1px solid #cfcfcf;
  transition:0.3s all;
}

.back-btn:hover { background:#f0f0f0; }
