/* ========================================
   SUPER KEREN LOGIN PAGE STYLES
   Modern, Animated, Glass Morphism Effect
   ======================================== */

/* ========== ANIMATED BACKGROUND ========== */
.login-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.bg-gradient {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    #667eea 0%, 
    #764ba2 25%, 
    #f093fb 50%, 
    #4facfe 75%, 
    #00f2fe 100%
  );
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

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

/* Floating Shapes */
.bg-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
  animation: floatShape 20s ease-in-out infinite;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, #f093fb, #f5576c);
  top: 60%;
  right: -10%;
  animation-delay: 4s;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  bottom: -10%;
  left: 20%;
  animation-delay: 8s;
}

.shape-4 {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, #43e97b, #38f9d7);
  top: 20%;
  right: 20%;
  animation-delay: 12s;
}

@keyframes floatShape {
  0%, 100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  25% {
    transform: translate(50px, 50px) scale(1.1) rotate(90deg);
  }
  50% {
    transform: translate(-30px, 80px) scale(0.9) rotate(180deg);
  }
  75% {
    transform: translate(-50px, -50px) scale(1.05) rotate(270deg);
  }
}

/* Particles */
.particles {
  position: absolute;
  width: 100%;
  height: 100%;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  animation: particleFloat 15s linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; }
.particle:nth-child(4) { left: 40%; animation-delay: 6s; }
.particle:nth-child(5) { left: 50%; animation-delay: 8s; }
.particle:nth-child(6) { left: 60%; animation-delay: 1s; }
.particle:nth-child(7) { left: 70%; animation-delay: 3s; }
.particle:nth-child(8) { left: 80%; animation-delay: 5s; }
.particle:nth-child(9) { left: 90%; animation-delay: 7s; }
.particle:nth-child(10) { left: 95%; animation-delay: 9s; }

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) scale(1);
    opacity: 0;
  }
}

/* ========== LOGIN CONTAINER ========== */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  gap: 30px;
}

/* ========== GLASS MORPHISM EFFECT ========== */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 32px 0 rgba(31, 38, 135, 0.37),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-radius: 20px;
}

/* ========== LOGIN BOX ========== */
.login-box {
  width: 100%;
  max-width: 450px;
  padding: 40px;
  animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== LOGO & HEADER ========== */
.login-header {
  text-align: center;
  margin-bottom: 40px;
}

.logo-container {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.logo-circle {
  width: 110px;
  height: 110px;
  background: linear-gradient(135deg, rgba(90, 110, 255, 0.92), rgba(150, 104, 255, 0.9));
  border: 3px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: white;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.18), 0 18px 35px rgba(88, 83, 163, 0.5);
  animation: logoFloat 3s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.logo-circle i {
  font-size: 52px;
  color: #ffffff;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

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

.logo-pulse {
  position: absolute;
  width: 115px;
  height: 115px;
  border-radius: 50%;
  background: rgba(130, 113, 255, 0.26);
  box-shadow: 0 0 25px rgba(130, 113, 255, 0.22);
  animation: pulse 2s ease-out infinite;
  z-index: 1;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.login-title {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin: 0 0 10px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.login-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 20px 0;
  font-weight: 400;
}

.title-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, white, transparent);
  margin: 0 auto;
  border-radius: 2px;
}

/* ========== LOGIN FORM ========== */
.login-form {
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  color: white;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-group label i {
  margin-right: 5px;
  opacity: 0.8;
}

/* Input Wrapper with Animation */
.input-wrapper {
  position: relative;
}

.input-wrapper input {
  width: 100%;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: white;
  font-size: 15px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.input-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.input-wrapper input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Input Highlight Animation */
.input-highlight {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.input-wrapper input:focus ~ .input-highlight {
  width: 100%;
}

/* Toggle Password Button */
.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 16px;
  transition: color 0.3s;
  padding: 5px;
}

.toggle-password:hover {
  color: white;
}

/* ========== FORM OPTIONS ========== */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.checkbox-container input {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.checkmark::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 12px;
  color: white;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s;
}

.checkbox-container input:checked ~ .checkmark {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-color: transparent;
}

.checkbox-container input:checked ~ .checkmark::after {
  opacity: 1;
  transform: scale(1);
}

/* ========== LOGIN BUTTON ========== */
.btn-login {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-login::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-login:hover::before {
  left: 100%;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.btn-login:active {
  transform: translateY(0);
}

.btn-login i {
  margin-right: 8px;
}

/* ========== ALERT ========== */
.glass-alert {
  padding: 15px 20px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.3);
  backdrop-filter: blur(10px);
  color: white;
  animation: shake 0.5s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

/* ========== FOOTER INFO ========== */
.login-footer {
  text-align: center;
  margin-top: 30px;
}

.login-info {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 20px;
}

.login-info i {
  margin-right: 5px;
}

.login-features {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 15px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  flex: 1;
  min-width: 100px;
}

.feature-item i {
  font-size: 24px;
  margin-bottom: 8px;
  opacity: 0.9;
}

/* ========== INFO CARD ========== */
.info-card {
  width: 100%;
  max-width: 320px;
  padding: 30px;
  animation: slideInRight 0.8s ease-out 0.3s both;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.info-header {
  text-align: center;
  margin-bottom: 25px;
}

.info-header i {
  font-size: 48px;
  color: white;
  margin-bottom: 15px;
  display: block;
  animation: iconBounce 2s ease-in-out infinite;
}

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

.info-header h3 {
  color: white;
  font-size: 20px;
  margin: 0;
  font-weight: 600;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  color: white;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInLeft 0.5s ease-out both;
}

.feature-list li:nth-child(1) { animation-delay: 0.5s; }
.feature-list li:nth-child(2) { animation-delay: 0.6s; }
.feature-list li:nth-child(3) { animation-delay: 0.7s; }
.feature-list li:nth-child(4) { animation-delay: 0.8s; }
.feature-list li:nth-child(5) { animation-delay: 0.9s; }

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li i {
  color: #43e97b;
  margin-right: 12px;
  font-size: 16px;
}

.feature-list li span {
  font-size: 14px;
  font-weight: 500;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
  .login-container {
    flex-direction: column;
  }
  
  .info-card {
    max-width: 450px;
  }
}

@media (max-width: 576px) {
  .login-box {
    padding: 30px 20px;
  }
  
  .logo-circle {
    width: 80px;
    height: 80px;
    font-size: 40px;
  }
  
  .login-title {
    font-size: 26px;
  }
  
  .login-features {
    flex-direction: column;
    gap: 10px;
  }
  
  .feature-item {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
  }
  
  .feature-item i {
    font-size: 20px;
    margin-bottom: 0;
  }
  
  .shape {
    width: 200px !important;
    height: 200px !important;
  }
}

/* ========== LOADING STATE ========== */
.btn-login.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn-login.loading .btn-text {
  display: none;
}

.btn-login.loading .btn-loading {
  display: inline !important;
}
