@import "common-style.css";

body {
  font-family: "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
  background-image: url("../image/bg1.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  position: relative;  /* Adding position relative for overlay */
  overflow: hidden;  /* Hiding overflow */
}

.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);  /* Adding semi-transparent overlay */
  z-index: 1;
}

.portal-container {
  position: relative;
  background-color: #fffcf2;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  width: 80%;
  max-width: 500px;
  text-align: center;
  z-index: 2;  /* Making sure container appears above overlay */
  opacity: 0;  /* Initial opacity for fade-in effect */
  transform: translateY(20px);  /* Initial position for fade-in effect */
  animation: fadeIn 1s forwards 0.5s;  /* Adding fade-in effect */
}

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

header {
  margin-bottom: 40px;
}

header h1 {
  color: #000000;
  font-size: 48px;
  font-weight: bold;
  font-family: "Dancing Script", cursive;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.login-form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-form .form-group {
  margin-bottom: 20px;
  width: 100%;
}

.login-form .form-group label {
  display: block;
  margin-bottom: 10px;
  color: #2c3e50;
}

.login-form .form-group input {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
}

.login-form .form-group input:focus {
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.2);
}

.login-button {
  padding: 10px 20px;
  background-color: #ffa0a0;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  color: #fff;
  font-size: 16px;
  transition: background-color 0.3s;
}

.login-button:hover {
  background-color: #d1a1a0;
}

footer {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
}

footer a {
  color: #2c3e50;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
