/* login.css */

* {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: url('../img/bg-new.jpg') no-repeat center center fixed;
  background-size: cover;
  position: relative;
}

body::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.login-container {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.97);
  padding: 2rem 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.login-title {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #ff9600;
  font-size: 1.24rem;
  font-weight: bold;
  padding-bottom: 20px;
}

.login-form {
  display: flex;
  flex-direction: column;
}

.login-form label {
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: #333;
}

.login-form input[type="email"],
.login-form input[type="password"] {
  width: 100%;
  padding: 0.6rem 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #fff;
}

.password-group {
  position: relative;
  margin-bottom: 1rem;
}

.password-group input {
  width: 100%;
  padding: 0.6rem 2.5rem 0.6rem 0.9rem; /* right padding for the eye icon */
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #fff;
}

.password-group .toggle-password {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #444;
  cursor: pointer;
  padding: 0;
  height: auto;
  line-height: 1;
}

.password-group .toggle-password:hover {
  background-color: rgba(0,0,0,0.05);
}

.login-button {
  width: 100%;
  padding: 0.7rem;
  background-color: #077A7D;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-button:hover {
  background-color: #004494;
}

.error-box {
  background-color: #ffdddd;
  border-left: 5px solid #f44336;
  padding: 10px;
  margin-bottom: 1rem;
  color: #a94442;
  border-radius: 5px;
  font-size: 0.95rem;
}

.g-recaptcha {
  margin: 1rem auto 1.5rem;
  display: flex;
  justify-content: center;
  transform: scale(1);
  transform-origin: center;
}
