/* Import variabel dari main.css */
@import url('main.css');

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, var(--citta-blue), #00d2ff);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  transition: background 0.3s;
}

/* Dark Mode */
body.dark {
  background: linear-gradient(135deg, #003087, #0088b3);
}

body.dark .login-container {
  background: #35354f;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark .policy-item label {
  color: var(--text-dark);
}

body.dark .policy-item a {
  color: var(--citta-blue);
}

body.dark .policy-item a:hover {
  color: #00d2ff;
}

body.dark h2 .black {
  color: var(--text-dark);
}

.login-container {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  text-align: center;
  width: 100%;
  max-width: 380px;
  animation: fadeIn 0.8s ease-in-out;
}

.logo {
  width: 90px;
  margin: 0 auto 1rem; /* Memusatkan logo */
  display: block; /* Pastikan logo di tengah */
  animation: bounce 1.8s infinite;
}

h2 {
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
  font-weight: bold;
}

h2 .black {
  color: #333;
}

h2 .blue, h2 #citta-login {
  color: var(--citta-blue);
  display: inline-block;
  animation: wave 2s infinite ease-in-out;
}

h2 .orange, h2 #fun-login {
  color: var(--fun-orange);
  display: inline-block;
  animation: wave 2s infinite ease-in-out 0.2s;
}

.policy-check {
  text-align: left;
  margin-bottom: 1.5rem;
  font-size: 14px;
  color: #444;
  line-height: 1.4;
}

.policy-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 0.8rem;
}

.policy-item input {
  margin-top: 2px;
  cursor: pointer;
}

.policy-item label {
  font-size: 14px;
  color: #444;
  line-height: 1.5;
  flex: 1;
  word-break: break-word;
}

.policy-item a {
  color: var(--citta-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.policy-item a:hover {
  color: #00d2ff;
}

.google-btn {
  background: #e0e0e0;
  border: 2px solid #ccc;
  color: #999;
  padding: 14px;
  width: 100%;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: not-allowed;
  transition: all 0.3s ease;
}

.google-btn:enabled {
  background: var(--citta-blue);
  border-color: var(--citta-blue);
  color: #fff;
  cursor: pointer;
}

.google-btn:enabled:hover {
  background: #fff;
  color: var(--citta-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 82, 204, 0.4);
}

.google-btn:disabled {
  background: #e0e0e0;
  border-color: #ccc;
  color: #999;
  cursor: not-allowed;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-12px); }
  60% { transform: translateY(-6px); }
}

@keyframes wave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Responsif */
@media (max-width: 480px) {
  .login-container {
    padding: 1.5rem;
    max-width: 100%;
    border-radius: 12px;
  }

  .logo {
    width: 80px;
  }

  h2 {
    font-size: 1.3rem;
  }

  .google-btn {
    font-size: 15px;
    padding: 12px;
  }
}
