/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* Background */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: url("images/Background.jpg") no-repeat center center fixed;
  background-size: cover;
  background-blend-mode: overlay;
  background-color: rgba(230, 255, 230, 0.7);
  position: relative;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: -1;
}

/* Form Container */
.container {
  background: rgba(255, 255, 255, 0.9);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0px 8px 20px rgba(0,0,0,0.4);
  max-width: 500px;
  width: 100%;
  margin: 20px;
  text-align: center;
  
  
}

.container h2 {
  margin-bottom: 20px;
  font-size: 24px;
  color: #008000;
}

/* Input + Select */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  transition: 0.3s;
}

input:focus,
select:focus {
  border-color: #008000;
  box-shadow: 0 0 6px rgba(0, 128, 0, 0.4);
}

/* ✅ Row Layout for side-by-side fields */
.form-row {
  display: flex;
  gap: 10px;
  margin: 8px 0;
}

.form-row input,
.form-row select,
.form-row .password-wrapper {
  flex: 1;
}

/* Password wrapper */
.password-wrapper {
  position: relative;
  width: 100%;
}

.password-wrapper input {
  width: 100%;
  padding-right: 40px;
}

.password-wrapper .toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: darkgreen;
  font-size: 18px;
}

/* Terms */
.terms-box details {
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #f0fff0;
}

.terms-box summary {
  font-weight: bold;
  color: #006400;
  cursor: pointer;
  list-style: none;
}

.terms-box summary::before {
  content: "➕ ";
  color: #008000;
}

.terms-box details[open] summary::before {
  content: "➖ ";
}

/* Button */
button {
  width: 100%;
  padding: 12px;
  background-color: #008000;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 16px;
  margin-top: 15px;
  cursor: pointer;
  transition: 0.3s ease;
}

button:hover {
  background-color: #006400;
}

/* Links */
p,
a {
  margin-top: 12px;
  font-size: 14px;
  color: #008000;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Messages */
#message.green { color: green; font-size: 13px; }
#message.red { color: red; font-size: 13px; }
#strength.green { color: green; font-size: 13px; }
#strength.red { color: red; font-size: 13px; }

.message-wrapper {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
  }
}
/* Body styling with one background only */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  font-family: Arial, sans-serif;
  position: relative;

  /* ✅ Background image */
  background: url("images/Background.jpg") no-repeat center center fixed;
  background-size: cover;
}

/* Overlay blur effect */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);   /* transparent dark layer */
  backdrop-filter: blur(4px);    /* blur effect */
  -webkit-backdrop-filter: blur(4px);
  z-index: -1;
}
/* Ayusin para hindi matulak yung toggle icon */
.password-wrapper {
  position: relative;
  width: 100%;
}

.password-wrapper input {
  width: 100%;
  padding-right: 40px; /* space para sa icon */
}

.password-wrapper .toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%); /* palaging gitna */
  cursor: pointer;
  color: darkgreen;
  font-size: 18px;
}

/* ✅ Messages hiwalay sa wrapper para di makisama sa input+icon */
#strength,
#message {
  display: block;
  font-size: 13px;
  margin-top: 4px;   /* konting space sa ilalim ng field */
  text-align: left;
}

#strength.green,
#message.green { color: green; }

#strength.red,
#message.red { color: red; }

.login-note {
  font-size: 13px;
  color: #555;
  margin-top: 12px;
  line-height: 1.5;
}
.login-note strong {
  color: red;
}

/* Modal styles (used by register.php) - match dashboard look */
.simple-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px) brightness(0.6);
  padding: 24px;
  overflow: auto;
}
.simple-modal .modal-content {
  max-width: 640px;
  margin: 6% auto;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35), 0 4px 12px rgba(0,0,0,0.2);
  background: #fff;
  transition: transform 0.28s cubic-bezier(.2,.9,.2,1), box-shadow 0.28s ease;
}
.simple-modal .modal-content:hover {
  transform: translateY(-6px);
}
.simple-modal .modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 26px;
  color: #777;
  cursor: pointer;
}
.simple-modal .modal-close:hover { color: #004d40; }

@media (max-width: 600px) {
  .simple-modal .modal-content { margin: 10% 12px; width: calc(100% - 24px); }
}
