/* Font & Reset */
* {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Animasi background gradasi */
body {
  background: linear-gradient(135deg, #007BFF, #6f42c1, #17a2b8);
  background-size: 200% 200%;
  animation: gradientShift 10s ease infinite;
  color: white;
  height: 100vh;
  overflow: hidden;
}

@keyframes gradientShift {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

/* Kontainer utama */
.main-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  text-align: center;
}

/* Header */
header h1 {
  font-size: 1.8rem;
  font-weight: 600;
}

header p {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 0;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 60px 20px;
  text-align: center;
  z-index: 1;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  background: url('trainly.png') no-repeat center center;
  background-size: contain;
  opacity: 0.2; /* transparansi gambar */
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none; /* agar tidak ganggu klik */
}

.hero h2,
.hero p,
.hero .btn-google {
  position: relative;
  z-index: 1;
}

/* Tombol login Google */
.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background-color: #fff;
  color: #333;
  font-weight: 400;
  font-size: 16px;
  border: none;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-google:hover {
  background-color: #f1f1f1;
  color: blue;
}

.btn-google img {
  height: 24px;
  width: 24px;
  object-fit: contain;
  margin-top: 4px;
  display: block;
}

/* Footer */
footer {
  font-size: 0.75rem;
  color: #f1f1f1;
  opacity: 0.8;
}

/* Responsive: sedikit perbesar gambar di layar tinggi */
@media (min-height: 700px) {
  .hero::before {
    width: 340px;
    height: 340px;
  }
}

/* Login Box Style */
.login-box {
  background: rgba(0, 0, 0, 0.4); /* transparan agar gradasi terlihat */
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 400px;
  color: white;
  backdrop-filter: blur(8px); /* efek blur belakang */
}

.login-box h2 {
  font-weight: 600;
  color: #fff;
}

.login-box .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.login-box .form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.btn-login {
  background-color: #ffc107;
  color: #212529;
  font-weight: 600;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.btn-login:hover {
  background-color: #e0a800;
  color: white;
}

.back-link {
  font-size: 0.85rem;
  display: inline-block;
  margin-top: 10px;
}

.alert {
  font-size: 0.9rem;
}
