:root {
  --teal: #1f6f79;
  /* main outline color sa logo */
  --teal-dark: #16565f;
  /* hover/darker teal */
  --coral: #e37563;
  /* "PHILIPPINES" color */
  --gray: #6b6f76;
  /* otop.ph gray */
  --bg: #f4faf9;
  /* soft clean background */
  --card: #ffffff;
  /* card */
  --border: #dfe9e8;
  /* subtle border */
  --shadow: rgba(23, 45, 48, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(31, 111, 121, 0.12), transparent 55%),
    radial-gradient(900px 500px at 90% 30%, rgba(227, 117, 99, 0.12), transparent 55%),
    var(--bg);
  padding: 20px;
}

.container {
  display: flex;
  width: 860px;
  background: var(--card);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 40px var(--shadow);
  border: 1px solid var(--border);
}

.image-container {
  flex: 1;
  background:
    linear-gradient(135deg, rgba(31, 111, 121, 0.85), rgba(227, 117, 99, 0.65)),
    url("../img/loginimage.jpg") center / cover no-repeat;
  position: relative;
}

.image-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.25), transparent 55%);
}

.form-container {
  flex: 1;
  padding: 44px 42px;
}

.logo-img {
  width: 150px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 18px auto;
  padding: 10px 12px;
}

.welcome-text {
  text-align: center;
  color: var(--gray);
  margin-bottom: 26px;
}

.welcome-text h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.input-group {
  margin-bottom: 18px;
}

input {
  width: 100%;
  padding: 12px 14px;
  border: 1.8px solid var(--border);
  border-radius: 10px;
  font-size: 16px;
  transition: border-color 0.25s, box-shadow 0.25s;
  background: #fbfdfd;
  color: #1d2b2d;
}

input::placeholder {
  color: #9aa6a6;
}

input:focus {
  outline: none;
  border-color: rgba(31, 111, 121, 0.75);
  box-shadow: 0 0 0 4px rgba(31, 111, 121, 0.12);
  background: #fff;
}

.login-btn {
  width: 100%;
  padding: 12px;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s, background 0.25s, box-shadow 0.25s;
  box-shadow: 0 12px 22px rgba(31, 111, 121, 0.22);
}

.login-btn:hover {
  background: var(--teal-dark);
  box-shadow: 0 14px 26px rgba(31, 111, 121, 0.26);
}

.login-btn:active {
  transform: translateY(1px);
}

@media (max-width: 900px) {
  .container {
    width: 95%;
  }
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    width: 95%;
  }

  .image-container {
    height: 220px;
  }

  .form-container {
    padding: 32px 20px;
  }

  .logo-img {
    width: 160px;
  }
}

.alert {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  margin: 12px 0 14px;
  font-size: 14px;
  border: 1px solid transparent;
}

.alert-error {
  background: #fdecec;
  border-color: #f5bcbc;
  color: #a42424;
}

.helper-links {
  margin-top: 12px;
  text-align: center;
}

.link {
  color: var(--teal);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.link:hover {
  text-decoration: underline;
  color: var(--teal-dark);
}