/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: linear-gradient(90deg, #0a2f7a, #1e4cb5, #3a6ff7);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  position: sticky;
  top: 0;
  z-index: 10;
  animation: slideDown 0.8s ease;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  height: 65px;
  border-radius: 12px;
  transition: transform 0.3s;
}

.logo img:hover {
  transform: rotate(8deg) scale(1.05);
}

.logo h1 {
  font-size: 18px;
  font-weight: 600;
  max-width: 280px;
  line-height: 1.3;
  letter-spacing: 1px;
}

/* Social Icons */
.social-icons a {
  margin-left: 15px;
  color: #fff;
  font-size: 22px;
  transition: all 0.3s;
}

.social-icons a:hover {
  color: #ffd700;
  transform: translateY(-4px) scale(1.2);
}

/* Main */
main {
  background: url("/Image/Poli.jpg") no-repeat center center/cover;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.overlay {
  background: linear-gradient(135deg, rgba(0, 0, 50, 0.7), rgba(20, 40, 120, 0.7));
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

/* Transparent Background Image */
.bg-transparent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  z-index: 1;
}

/* Login Box */
.login-box {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  padding: 50px 40px;
  border-radius: 20px;
  text-align: center;
  width: 350px;
  border: 2px solid transparent;
  background-image: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  box-shadow: 0 15px 45px rgba(0,0,0,0.5);
  transition: transform 0.3s, box-shadow 0.3s;
  z-index: 2;
  position: relative;
  animation: fadeIn 1s ease;
}

.login-box:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 25px 60px rgba(0,0,0,0.7);
}

.login-box h2 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 0 3px 8px rgba(0,0,0,0.5);
}

.login-box p {
  margin-bottom: 20px;
  color: #f0f0f0;
  font-size: 14px;
}

/* Input */
.login-box input {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border-radius: 8px;
  border: none;
  outline: none;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 14px;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}

.login-box input::placeholder {
  color: #ddd;
}

/* Buttons */
.login-box button {
  display: block;
  width: 100%;
  margin: 15px 0;
  padding: 14px;
  background: linear-gradient(135deg, #0a2f7a, #1e4cb5, #3a6ff7);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.35s ease-in-out;
  box-shadow: 0 5px 18px rgba(0,0,0,0.3);
  background-size: 200% 200%;
  animation: gradientMove 5s ease infinite;
}

.login-box button:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 25px rgba(0,0,0,0.6), 0 0 20px #ffd700 inset;
}

/* Footer */
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 40px;
  background: linear-gradient(180deg, #0a2f7a, #0a1d4d, #060d2b);
  color: white;
  text-align: left;
  border-top: 4px solid #ffd700;
  position: relative;
}

.footer-logo {
  max-width: 250px;
}

.footer-logo img {
  height: 75px;
  margin-bottom: 12px;
  transition: transform 0.3s;
}

.footer-logo img:hover {
  transform: scale(1.1);
}

.footer-logo p {
  font-size: 14px;
  line-height: 1.5;
}

.contact {
  max-width: 400px;
}

.contact h3 {
  margin-bottom: 12px;
  font-size: 18px;
  border-bottom: 2px solid #ffd700;
  display: inline-block;
  padding-bottom: 4px;
}

.contact p {
  font-size: 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact i {
  color: #ffd700;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
