* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  width: 100%;
  overflow: hidden; /* prevent stray scrollbars */
  font-family: Arial, sans-serif;
  background: #f3f4f6;
}

.login-wrapper {
  display: flex;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.login-panel {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url("../img/login-office.jpeg") no-repeat center center / cover;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    rgba(16, 185, 129, 0.7),
    rgba(30, 64, 175, 0.7)
  );
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  overflow: hidden;
}

.form-box {
  background: rgba(255, 255, 255, 0.85);
  padding: 2rem;
  border-radius: 1rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
  text-align: center;
}

.logo {
  max-width: 150px;
  margin: 0 auto 1rem;
  display: block;
}

.form-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #374151;
}

.form-group {
  margin-bottom: 1rem;
  text-align: left;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #374151;
}

input[type="email"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
}

input[type="email"]:focus {
  border-color: #10b981;
  outline: none;
}

.submit-btn {
  width: 100%;
  padding: 0.85rem;
  background-color: #10b981;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  margin-top: 1rem;
  cursor: pointer;
}

@media (max-width: 640px) {
  html,
  body {
    overflow: auto;
  }

  .login-wrapper {
    flex-direction: column;
    overflow: auto;
  }
  .overlay {
    padding: 0px;
  }

  .form-box {
    /* background: gray; */
    width: 100%;
    max-width: none;
    height: 100%;
    box-shadow: none;
    border-radius: 0px;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    justify-content: center;
  }
}

input::placeholder {
  font-size: 14px;
}

.submit-btn:hover {
  background-color: #059669;
}

/* Message Box */
.message {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 4px;
  text-align: center;
}

.error {
  background-color: #ffebee;
  color: #c62828;
}

.success {
  background-color: #e8f5e9;
  color: #2e7d32;
}
