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

/* BODY */
body {
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background:
    linear-gradient(rgba(192, 211, 197, 0.65), rgba(19, 111, 45, 0.65)),
    url('/images/IFUGAO-STATE-UNIVERSITY.jpg') no-repeat center center/cover;
}

/* TOP GREEN HEADER - LEFT ALIGNED */
.header-top {
  position: fixed;        
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;              
  padding: 8px 20px;      
  background-color:  #0d4f20; 
  z-index: 1000;
}

.header-top img.logo {
  width: 70px;          
  margin: 0;
}

.header-top .header-text {
  text-align: left;
}

.header-top .header-text h1 {
  font-size: 18px;          
  color: #ffffff;
  margin-bottom: 2px;      
}

.header-top .header-text p {
  font-size: 14px;          
  color: #ffffff;
  margin: 0;
}

/* Adjust wrapper to match new header height */
.wrapper {
  margin-top: 70px;        
}

.login-box {
  width: 400px;
  max-width: 95%;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
  background: #ffffff;
}

/* CONTAINER */
.container {
  padding: 35px 30px;
  text-align: center;
}

/* TITLE */
.title {
  font-size: 22px;
  font-weight: 600;
  color: #136f2d;
}

.subtitle {
  font-size: 14px;
  color: #777;
  margin-bottom: 20px;
}

/* INPUT */
.input-wrapper {
  position: relative;
  margin-bottom: 17px;
}

.input-wrapper input,
.input-wrapper select {
  width: 100%;
  padding: 12px 15px 12px 40px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
  border-color: #136f2d;
  outline: none;
  box-shadow: 0 0 5px rgba(19,111,45,0.3);
}

/* ICON */
.input-wrapper .icon {
  position: absolute;
  top: 21px;
  left: 12px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin: 0;
  color: #888;
}

/* FORGOT */
.forgot {
  text-align: right;
  margin-bottom: 17px;
}

.forgot a {
  font-size: 15px;
  color: #136f2d;
  text-decoration: none;
}

.forgot a:hover {
  text-decoration: underline;
}

/* BUTTON */
.button {
  width: 100%;
  padding: 12px;
  background: #136f2d;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}

.button:hover {
  background: #0d4f20;
}

/* LINKS */
.switch {
  color: #136f2d;
  font-weight: 500;
  text-decoration: none;
}

.switch:hover {
  text-decoration: underline;
}

/* Modern split login page */
body.login-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 160px 24px 24px;
  background:
    linear-gradient(180deg, rgba(49, 112, 164, .35) 0%, rgba(7, 79, 64, .52) 47%, rgba(0, 54, 39, .86) 100%),
    url('/images/IFUGAO-STATE-UNIVERSITY.jpg') no-repeat center center / cover;
}

body.login-page .header-top {
  gap: 14px;
  padding: 6px clamp(18px, 3vw, 42px);
  background: linear-gradient(100deg, #f2faf5 0%, #fff 72%);
  border-bottom: 1px solid #dcebe2;
  box-shadow: 0 3px 14px rgba(15, 65, 42, .09);
}

body.login-page .header-top {
  background: #fff;
  border-bottom: 2px solid #075b39;
}

body.login-page .header-top img.logo {
  width: 64px;
  height: 64px;
  padding: 0;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.login-page .header-top img.ifsu-logo {
  width: 48px;
  height: 48px;
}

body.login-page .header-top .header-text h1 {
  margin-bottom: 3px;
  color: #075b39;
  font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .25px;
}

body.login-page .header-top .header-text p {
  color: #28704d;
  font-size: 12px;
  line-height: 1.4;
}

body.login-screen .header-top .header-text h1,
body.login-screen .header-top .header-text p,
body.register-screen .header-top .header-text h1,
body.register-screen .header-top .header-text p,
body.forgot-screen .header-top .header-text h1,
body.forgot-screen .header-top .header-text p {
  font-family: Georgia, 'Times New Roman', serif;
  text-transform: uppercase;
}

body.login-screen .header-top .header-text h1,
body.register-screen .header-top .header-text h1,
body.forgot-screen .header-top .header-text h1 {
  display: none;
}

body.login-screen .header-top .header-text p,
body.register-screen .header-top .header-text p,
body.forgot-screen .header-top .header-text p {
  max-width: 340px;
  margin: 0;
  color: #075b39;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .45px;
  line-height: 1.15;
}

.login-shell {
  width: min(1240px, 68.5vw, 100%);
  display: grid;
  grid-template-columns: minmax(0, 44fr) minmax(0, 52fr);
  gap: 4%;
  align-items: center;
  margin: auto;
}

.login-welcome {
  color: #fff;
  padding: 20px 0;
  text-shadow: 0 1px 8px rgba(0, 35, 32, .22);
  transform: translateY(-18px);
}

.login-brand-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(226, 255, 239, .72);
  color: #075b3b;
  font-size: 14px;
  font-weight: 600;
  text-shadow: none;
  margin-bottom: 22px;
}

.login-welcome h1 {
  color: #fff;
  font-size: clamp(34px, 3.5vw, 46px);
  line-height: 1.12;
  letter-spacing: -.8px;
  font-weight: 700;
  margin: 0 0 8px;
}

body.login-screen .login-welcome h1 {
  animation: welcome-heading-slide-in .65s ease-out both;
}

body.login-screen .login-welcome-subtitle,
body.login-screen .login-welcome-description {
  animation: welcome-heading-slide-in .65s ease-out both;
}

body.login-screen .login-welcome-subtitle { animation-delay: .12s; }
body.login-screen .login-welcome-description { animation-delay: .24s; }

@keyframes welcome-heading-slide-in {
  from { opacity: 0; transform: translateX(-22px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  body.login-screen .login-welcome h1,
  body.login-screen .login-welcome-subtitle,
  body.login-screen .login-welcome-description,
  body.login-screen .login-box,
  body.primary-login .login-box,
  body.register-screen .login-box,
  body.forgot-screen .login-box { animation: none; opacity: 1; }
}

.login-welcome h1 strong { color: #a4edc1; font-size: 1.2em; font-weight: 750; }
.login-welcome-subtitle { color: rgba(255,255,255,.92); font-size: 17px; line-height: 1.45; max-width: 470px; }
.login-accent-line { width: 55px; height: 3px; background: #82e6a9; margin: 24px 0; }
.login-welcome-description { color: rgba(255,255,255,.9); font-size: 16px; line-height: 1.6; }
.login-benefits { display:flex; flex-wrap:wrap; gap:18px; margin-top:30px; }
.login-benefits > div { display:flex; align-items:center; gap:10px; font-size:14px; line-height:1.45; }
.benefit-icon { width:42px; height:42px; display:grid; place-items:center; border-radius:50%; color:#fff; background:rgba(9,115,76,.72); border:1px solid rgba(255,255,255,.16); font-size:18px; }

.login-page .login-box {
  width: min(100%, 440px);
  max-width: 440px;
  justify-self: end;
  min-height: min(60vh, calc(100vh - 170px));
  display: flex;
  border-radius: 18px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 24px 70px rgba(0, 32, 34, .24);
  overflow: hidden;
}

body.login-screen .login-box {
  transform: translateY(-14px);
  animation: login-panel-enter .7s ease-out both;
}

body.primary-login .login-box {
  animation: login-panel-slide-in .65s ease-out both;
}

@keyframes login-panel-enter {
  from { opacity: 0; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(-14px); }
}

@keyframes login-panel-slide-in {
  from { opacity: 0; transform: translate(22px, -14px); }
  to { opacity: 1; transform: translate(0, -14px); }
}

body.register-screen .login-box,
body.forgot-screen .login-box {
  transform: translateY(-14px);
  animation: login-panel-slide-in .65s ease-out both;
}

body.verify-screen .login-box,
body.reset-screen .login-box {
  animation: login-panel-slide-in .65s ease-out both;
}

body.register-screen .login-box,
body.forgot-screen .login-box,
body.verify-screen .login-box,
body.reset-screen .login-box {
  animation: none;
}

body.register-screen .signup-intro {
  font-size: 14px;
}

.login-page .container { flex:1; display:flex; flex-direction:column; justify-content:center; padding: 20px 24px 18px; text-align:left; }
.login-heading { display:flex; align-items:center; gap:11px; margin-bottom:13px; }
.login-heading-icon { width:40px; height:40px; flex:0 0 40px; display:grid; place-items:center; border-radius:50%; color:#075b3b; background:#e5f4ec; font-size:17px; }
.login-heading h2 { margin:0 0 3px; color:#064d3e; font-size:18px; line-height:1.2; font-weight:700; }
.login-heading p { margin:0; color:#718096; font-size:12px; }
.login-page .login-message { display:flex; align-items:flex-start; gap:9px; padding:11px 13px; margin:0 0 16px; border-radius:8px; font-size:13px; line-height:1.45; }
.login-page .login-message.success-message { color:#155724; background:#d4edda; }
.login-page .login-message.error { color:#721c24; background:#f8d7da; }
.login-page .login-form { margin:0; }
.login-page .input-wrapper {
  min-height:43px;
  display:flex;
  align-items:center;
  position:relative;
  margin:0 0 9px;
  border:1px solid #d8e1ed;
  border-radius:14px;
  background:#f9fafc;
  box-shadow: inset 0 1px 2px rgba(15,23,42,.02);
}
.login-page .input-wrapper:focus-within { border-color:#0a8050; box-shadow:0 0 0 3px rgba(10,128,80,.1); }
.login-page .input-wrapper .icon { position:static; transform:none; flex:0 0 44px; color:#687587; font-size:15px; }
.login-page .input-wrapper input {
  min-width:0;
  width:100%;
  padding:10px 10px 10px 0;
  border:0;
  outline:0;
  background:transparent;
  color:#172b4d;
  font-size:14px;
  box-shadow:none;
}
.login-page .input-wrapper select {
  min-width:0;
  width:100%;
  padding:10px 10px 10px 0;
  border:0;
  outline:0;
  background:transparent;
  color:#172b4d;
  font:inherit;
  font-size:14px;
  box-shadow:none;
}
body.reset-screen .input-wrapper {
  height: auto;
  flex-wrap: wrap;
  padding-right: 10px;
  padding-bottom: 8px;
}
body.reset-screen .input-wrapper > .icon {
  align-self: flex-start;
  margin-top: 13px;
}
body.reset-screen .password-strength,
body.reset-screen .input-wrapper > small {
  flex: 0 0 calc(100% - 44px);
  margin-left: 44px;
}
body.reset-screen .password-strength { margin-top: 2px; }
.login-page .input-wrapper input::placeholder { color:#8490a3; opacity:1; }
.login-page .input-wrapper input:focus { border:0; outline:0; box-shadow:none; }
.password-toggle { flex:0 0 40px; height:100%; border:0; background:transparent; color:#687587; cursor:pointer; font-size:16px; }
.login-page .forgot { margin: -3px 0 11px; text-align:right; }
.login-page .forgot a { color:#086143; font-size:12px; text-decoration:underline; }
.login-page .button {
  min-height:41px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:14px;
  padding:9px 16px;
  border-radius:10px;
  background:linear-gradient(105deg,#00623d,#005b38);
  font-size:14px;
  font-weight:700;
  box-shadow:0 8px 18px rgba(0,91,56,.14);
}
.login-page .button i { font-size:16px; transition:transform .18s ease; }
.login-page .button:hover { background:#004e32; }
.login-page .button:hover i { transform:translateX(3px); }
.login-divider { display:flex; align-items:center; gap:12px; margin:11px 0 8px; color:#7b8798; font-size:11px; }
.login-divider span { height:1px; flex:1; background:#dce3ed; }
.login-divider b { font-weight:500; }
.login-page .signup-intro { margin:0 0 7px; color:#778397; font-size:12px; text-align:center; }
.signup-title { margin:0 0 8px; color:#26354a; font-size:13px; font-weight:600; }
.signup-options { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.signup-option {
  min-height:62px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:8px 9px;
  border:1px solid #b8e2cc;
  border-radius:13px;
  background:linear-gradient(120deg,#f0faf4,#eef7f1);
  color:#075b3b;
  text-decoration:none;
  transition:transform .18s ease, box-shadow .18s ease;
}
.signup-option:hover { transform:translateY(-2px); box-shadow:0 8px 18px rgba(15,70,55,.1); }
.signup-option.employee-option { border-color:#cfe0ff; background:linear-gradient(120deg,#f3f7ff,#eff4ff); color:#174e8a; }
.signup-option-icon { flex:0 0 34px; text-align:center; font-size:25px; }
.signup-option span { min-width:0; display:flex; flex:1; flex-direction:column; gap:4px; }
.signup-option strong { font-size:13px; }
.signup-option small { color:#718096; font-size:10px; line-height:1.35; }
.signup-option-arrow { font-size:12px; }

@media (max-width: 1050px) {
  body.login-page { padding-top:160px; }
  .login-shell { width:min(720px,100%); grid-template-columns:1fr; gap:24px; }
  .login-page .login-box { width:100%; max-width:440px; min-height:0; display:block; justify-self:center; }
  .login-page .container { display:block; padding:20px 24px 18px; }
  .login-welcome h1 { font-size:38px; }
  .login-benefits { gap:12px; }
}

@media (max-width: 820px) {
  body.login-page { display:block; padding:140px 18px 28px; }
  .login-shell { width:min(480px,100%); grid-template-columns:1fr; gap:18px; }
  .login-page .login-box { width:100%; max-width:none; justify-self:stretch; }
  .login-welcome { padding:8px 4px 0; transform:translateY(-10px); }
  .login-brand-pill { margin-bottom:12px; padding:7px 12px; font-size:12px; }
  .login-welcome h1 { font-size:32px; }
  .login-welcome h1 strong { font-size:1.12em; }
  .login-welcome-subtitle { font-size:15px; }
  .login-accent-line { margin:15px 0; }
  .login-welcome-description { font-size:14px; }
  .login-benefits { display:none; }
  .login-page .container { padding:19px 20px 16px; }
  .login-heading { margin-bottom:14px; }
  .login-heading h2 { font-size:18px; }
  .login-heading-icon { width:40px; height:40px; flex-basis:40px; font-size:17px; }
}

@media (max-width: 480px) {
  body.login-page { padding:140px 12px 18px; }
  .login-shell { gap:14px; }
  .login-welcome h1 { font-size:27px; }
  .login-welcome h1 strong { font-size:1.08em; }
  .login-welcome-subtitle { font-size:13px; }
  .login-accent-line { margin:12px 0; }
  .login-welcome-description { font-size:13px; }
  .desktop-break { display:none; }
  .login-page .login-box { border-radius:17px; }
  .login-page .container { padding:18px 16px; }
  .login-heading { gap:10px; margin-bottom:14px; }
  .login-heading h2 { font-size:17px; }
  .login-heading p { font-size:12px; }
  .login-heading-icon { width:38px; height:38px; flex-basis:38px; font-size:16px; }
  .login-page .input-wrapper { min-height:44px; border-radius:10px; margin-bottom:10px; }
  .login-page .input-wrapper .icon { flex-basis:40px; }
  .login-page .input-wrapper input { font-size:13px; }
  .login-page .button { min-height:43px; border-radius:10px; }
  .signup-options { gap:7px; }
  .signup-option { min-height:64px; gap:6px; padding:8px 7px; border-radius:11px; }
  .signup-option-icon { flex-basis:26px; font-size:21px; }
  .signup-option strong { font-size:12px; }
  .signup-option small { font-size:9px; }
  .signup-option-arrow { font-size:11px; }
}

/* TEXT */
.container p {
  margin-top: 10px;
}

/* MESSAGES */
.error {
  color: red;
  margin-bottom: 10px;
}

.success-message {
  color: green;
  margin-bottom: 10px;
}

/* RESPONSIVE - VERY SMALL PHONES (320px) */
@media (max-width: 320px) {
  body {
    padding: 10px;
  }

  .header-top {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }

  .header-top img.logo {
    width: 45px;
    flex-shrink: 0;
  }

  .header-top .header-text h1 {
    font-size: 13px;
    margin-bottom: 1px;
  }

  .header-top .header-text p {
    font-size: 10px;
  }

  .wrapper {
    margin-top: 65px;
    width: 100%;
  }

  .login-box {
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  }

  .container {
    padding: 20px 15px;
  }

  .title {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .subtitle {
    font-size: 12px;
    margin-bottom: 15px;
  }

  .input-wrapper {
    margin-bottom: 12px;
  }

  .input-wrapper input,
  .input-wrapper select {
    padding: 10px 12px 10px 35px;
    font-size: 13px;
    border-radius: 6px;
  }

  .input-wrapper .icon {
    left: 10px;
  }

  .forgot {
    margin-bottom: 12px;
  }

  .forgot a {
    font-size: 12px;
  }

  .button {
    padding: 10px;
    font-size: 13px;
    border-radius: 6px;
  }

  .container p {
    font-size: 12px;
    margin-top: 8px;
  }

  .switch {
    font-size: 12px;
  }
}

/* RESPONSIVE - SMALL PHONES (375px) */
@media (min-width: 321px) and (max-width: 375px) {
  body {
    padding: 12px;
  }

  .header-top {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
  }

  .header-top img.logo {
    width: 50px;
    flex-shrink: 0;
  }

  .header-top .header-text h1 {
    font-size: 14px;
    margin-bottom: 1px;
  }

  .header-top .header-text p {
    font-size: 11px;
  }

  .wrapper {
    margin-top: 68px;
    width: 100%;
  }

  .login-box {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
  }

  .container {
    padding: 25px 18px;
  }

  .title {
    font-size: 19px;
    margin-bottom: 10px;
  }

  .subtitle {
    font-size: 13px;
    margin-bottom: 15px;
  }

  .input-wrapper {
    margin-bottom: 13px;
  }

  .input-wrapper input,
  .input-wrapper select {
    padding: 11px 13px 11px 37px;
    font-size: 13px;
  }

  .input-wrapper .icon {
    left: 11px;
  }

  .forgot {
    margin-bottom: 13px;
  }

  .forgot a {
    font-size: 13px;
  }

  .button {
    padding: 11px;
    font-size: 14px;
  }

  .container p {
    font-size: 13px;
    margin-top: 10px;
  }

  .switch {
    font-size: 13px;
  }
}

/* RESPONSIVE - MEDIUM PHONES (390px) */
@media (min-width: 376px) and (max-width: 430px) {
  body {
    padding: 15px;
  }

  .header-top {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
  }

  .header-top img.logo {
    width: 55px;
    flex-shrink: 0;
  }

  .header-top .header-text h1 {
    font-size: 15px;
    margin-bottom: 1px;
  }

  .header-top .header-text p {
    font-size: 11px;
  }

  .wrapper {
    margin-top: 70px;
    width: 100%;
  }

  .login-box {
    width: 100%;
    max-width: 100%;
    border-radius: 13px;
  }

  .container {
    padding: 28px 20px;
  }

  .title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .subtitle {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .input-wrapper {
    margin-bottom: 14px;
  }

  .input-wrapper input,
  .input-wrapper select {
    padding: 11px 14px 11px 38px;
    font-size: 14px;
    border-radius: 7px;
  }

  .input-wrapper .icon {
    left: 12px;
  }

  .forgot {
    margin-bottom: 14px;
  }

  .forgot a {
    font-size: 13px;
  }

  .button {
    padding: 11px;
    font-size: 14px;
    border-radius: 7px;
  }

  .container p {
    font-size: 13px;
    margin-top: 10px;
  }

  .switch {
    font-size: 13px;
  }
}

/* RESPONSIVE - TABLETS & LARGER PHONES (431px - 768px) */
@media (min-width: 431px) and (max-width: 768px) {
  body {
    padding: 20px;
  }

  .header-top {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
  }

  .header-top img.logo {
    width: 65px;
  }

  .header-top .header-text h1 {
    font-size: 17px;
  }

  .header-top .header-text p {
    font-size: 13px;
  }

  .wrapper {
    margin-top: 75px;
    width: 100%;
  }

  .login-box {
    width: 90%;
    max-width: 450px;
    border-radius: 14px;
  }

  .container {
    padding: 32px 25px;
  }

  .title {
    font-size: 21px;
    margin-bottom: 12px;
  }

  .subtitle {
    font-size: 14px;
    margin-bottom: 18px;
  }

  .input-wrapper {
    margin-bottom: 15px;
  }

  .input-wrapper input,
  .input-wrapper select {
    padding: 12px 15px 12px 40px;
    font-size: 14px;
  }

  .forgot {
    margin-bottom: 15px;
  }

  .forgot a {
    font-size: 14px;
  }

  .button {
    padding: 12px;
    font-size: 14px;
  }

  .container p {
    font-size: 13px;
    margin-top: 10px;
  }
}
