/* Elegant Login Page Styling - login-style.css */

/* Base styles and typography */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

:root {
  --primary-color: #213A41;       /* Warna utama elegant dark teal */
  --secondary-color: #718096;     /* Warna sekunder medium gray */
  --accent-color: #8A9AA7;        /* Warna aksen soft blue gray */
  --text-color: #2D3748;
  --text-light: #718096;
  --bg-light: #f8f9fa;
  --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  color: var(--text-color);
  line-height: 1.5;
}

/* Elegant background styling */
body.login {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  min-height: 100vh;
}

body.login::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(33, 58, 65, 0.7); /* Elegant dark teal overlay */
  z-index: 0;
  backdrop-filter: blur(3px);
}

/* Container styling */
.top-content {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.inner-bg {
  width: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* Compact form box styling */
.form-box {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  max-width: 380px;
  margin: 0 auto;
  animation: fadeIn 0.6s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Logo and header section - more compact */
.form-top {
  text-align: center;
  padding: 25px 25px 15px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: #fff;
}

.form-top img {
  max-width: 100px;
  margin: 0 auto 10px;
  transition: var(--transition);
}

/* Village information styling - more compact */
.login-footer-top {
  padding: 5px 0;
}

.login-footer-top h1 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 5px;
  margin-top: 5px;
}

.login-footer-top h3 {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.4;
  margin-top: 5px;
}

/* Form section - more compact */
.form-bottom {
  padding: 25px;
  background: #ffffff;
}

/* Footer styling */
.login-footer-bottom {
  text-align: center;
  margin-top: 10px;
  padding-top: 10px;
  font-size: 13px;
  color: var(--text-light);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.login-footer-bottom a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.login-footer-bottom a:hover {
  color: var(--accent-color);
}

/* Alert styling */
.alert {
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 15px;
  border: none;
  background-color: rgba(66, 153, 225, 0.1);
  border-left: 3px solid #4299E1;
  color: #2B6CB0;
  font-size: 13px;
}

.alert-info {
  background-color: rgba(66, 153, 225, 0.1);
  border-left: 3px solid #4299E1;
  color: #2B6CB0;
}

/* Error message styling */
.error {
  padding: 12px;
  border-radius: 8px;
  background-color: rgba(245, 101, 101, 0.08);
  border-left: 3px solid #F56565;
  color: #C53030;
  margin-bottom: 15px;
  font-size: 13px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .form-box {
    margin: 0 20px;
    max-width: 100%;
  }
  
  .form-top, .form-bottom {
    padding: 20px 15px;
  }
  
  .login-footer-top h1 {
    font-size: 17px;
  }
  
  .login-footer-top h3 {
    font-size: 12px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --text-color: #E2E8F0;
    --text-light: #A0AEC0;
    --bg-dark: #1A202C;
  }
  
  .form-box {
    background: rgba(26, 32, 44, 0.97);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  }
  
  .form-top {
    background: #1A202C;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .form-bottom {
    background: var(--bg-dark);
  }
  
  .login-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .alert {
    background-color: rgba(66, 153, 225, 0.15);
    color: #90CDF4;
  }
  
  .error {
    background-color: rgba(245, 101, 101, 0.15);
    color: #FEB2B2;
  }
}

