/* Variabel CSS */
:root {
  --primary: #4361ee;
  --secondary: #3a0ca3;
  --accent: #f72585;
  --light: #f8f9fa;
  --dark: #212529;
  --success: #4cc9f0;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* Reset & Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(-45deg, #1a2a6c, #2b5876, #4e54c8, #2b5876);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
  color: var(--light);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  padding: 1rem;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Login Container */
.login-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.18);
  width: 100%;
  max-width: 420px;
  animation: slideUp 0.8s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Logo & Header */
.logo-container {
  text-align: center;
  margin-bottom: 2rem;
}

.logo-container img {
  width: 90px;
  height: auto;
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(to right, #fff, #cce6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-container p {
  opacity: 0.8;
  font-size: 0.9rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.input-with-icon {
  position: relative;
}

.input-with-icon input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 3rem;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--light);
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-with-icon input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.input-with-icon input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.5);
}

.input-with-icon > i {
  /* Ikon di kiri */
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.7);
}

.toggle-password {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: color 0.3s ease;
}

/* Button Styles */
.btn-login {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 10px;
  background: var(--gradient);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.4);
}

.btn-login:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(67, 97, 238, 0.6);
}

/* Footer Links */
.login-footer {
  text-align: center;
  margin-top: 1.5rem;
}

.login-footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.login-footer a:hover {
  color: var(--light);
  text-decoration: underline;
}

/* Notifikasi Error */
.alert {
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
}
