/* General Styles */
body {
  background-image: url('../img/bor.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0) 70%);
  background-color: rgba(0, 0, 0, 0.3);
}

.login-box {
  width: 900px;
  margin: auto;
  justify-content: center;
  display: flex;
  flex-direction: row;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.image-section {
  width: 75%;
  background-image: url('../img/ict.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 15px 0 0 15px;
}

.card {
  width: 55%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.login-card-body {
  text-align: center;
  width: 100%;
}

.login-card-body h1 {
  font-size: 32px;
  font-weight: 600;
  color: #052a6d;
  font-family: 'Audiowide', sans-serif;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.login-box-msg {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 20px;
}

/* Input Fields */
.form-group {
  width: 100%;
}

input {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 10px;
}

.btn-primary {
  background-color: #1877F2;
  border-color: #1877F2;
  width: 100%;
  padding: 10px;
  font-size: 16px;
  font-weight: bold;
}

.btn-primary:hover {
  background-color: #125ec6;
  border-color: #125ec6;
}

.btn-danger {
  background-color: #db4437;
  border-color: #db4437;
  width: 100%;
  padding: 10px;
  font-size: 16px;
  font-weight: bold;
}

.btn-danger:hover {
  background-color: #b3362d;
  border-color: #b3362d;
}

.terms-text {
  font-size: 12px;
  text-align: center;
  margin-top: 15px;
  color: #555;
}

.terms-text a {
  color: #d32f2f;
  text-decoration: none;
}

.terms-text a:hover {
  text-decoration: underline;
}

.hidden {
  display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .login-box {
    flex-direction: column;
    width: 90%;
  }
  
  .image-section {
    width: 100%;
    height: 50px;
    border-radius: 15px 15px 0 0;
  }

  .card {
    width: 100%;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .login-box {
    width: 100%;
    flex-direction: column;
  }

  .image-section {
    height: 200px;
  }

  .login-card-body h1 {
    font-size: 28px;
  }

  .btn-primary, .btn-danger {
    width: 100%;
    padding: 12px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .login-box {
    width: 100%;
    min-height: auto;
  }

  .image-section {
    height: 180px;
  }

  .login-card-body h1 {
    font-size: 24px;
  }

  .btn-primary, .btn-danger {
    font-size: 14px;
  }
}
