/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', Arial, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('/images/UBGR-4.jpg') no-repeat center center/cover;
  position: relative;
  overflow: hidden;
  color: #fff;
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  z-index: 1;
}

/* Container */
.login-container,
.reset-box {
  position: relative;
  z-index: 2;
  width: 380px;
  padding: 2.5rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  text-align: center;
  animation: fadeIn .6s ease;
}

/* Heading */
.login-container h2,
.reset-box h2 {
  margin-bottom: 1.8rem;
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: .6px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .4);
}

/* Input Group */
.input-group {
  margin-bottom: 1.6rem; /* Spasi antar field */
  text-align: left;
}

.input-group label {
  display: block;
  font-size: .9rem;
  margin-bottom: .4rem;
  font-weight: 500;
}

.input-group input,
.reset-box input {
  width: 100%;
  padding: .9rem 1rem;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: .7rem;
  outline: none;
  font-size: .95rem;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  transition: .3s ease;
}

.input-group input:focus,
.reset-box input:focus {
  border-color: #00b7c2;
  background: rgba(255, 255, 255, .25);
  box-shadow: 0 0 8px rgba(0, 183, 194, .6);
}

.input-group input::placeholder {
  color: rgba(255, 255, 255, .7);
}

/* Buttons (seragam untuk login & reset password) */
button,
.login-btn,
.reset-box button {
  width: 100%;
  padding: .9rem;
  margin-top: 1rem;
  border: none;
  border-radius: 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: .3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  background: linear-gradient(135deg, #009688, #006d71);
  color: #fff;
}

button:hover,
.login-btn:hover,
.reset-box button:hover {
  background: linear-gradient(135deg, #00b7c2, #008080);
  transform: scale(1.04);
}

/* Remember & Forgot */
.remember-forgot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .85rem;
  margin: 0.8rem 0 1rem;
}

.remember-forgot a {
  color: #fff;
  text-decoration: none;
  transition: .3s;
}

.remember-forgot a:hover {
  text-decoration: underline;
}

/* Register / Links */
.login-container .register,
.reset-box a {
  margin-top: 1.2rem;
  font-size: .9rem;
  display: block;
  text-align: center;
}

.login-container .register a,
.reset-box a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.login-container .register a:hover,
.reset-box a:hover {
  text-decoration: underline;
}

/* Alerts */
.error-message,
.alert {
  margin-top: 1rem;
  padding: .8rem 1rem;
  border-radius: .7rem;
  font-weight: 500;
  font-size: .9rem;
  text-align: center;
  color: #fff;
}

.success {
  background: #4CAF50;
}

.error,
.error-message {
  background: rgba(82, 9, 18, 0.85);
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}
