/* auth.css - shared design for login / forgot password / reset password pages */
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', sans-serif; }
::selection { background: #0f5132; color: #fff; }
a { color: #0f5132; text-decoration: none; }
a:hover { color: #0a3d24; text-decoration: underline; }

.login-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; background: #ffffff; }
.login-hero { position: relative; overflow: hidden; background: #0f5132; }
.login-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.login-hero .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,15,0.15) 0%, rgba(10,20,15,0.35) 55%, rgba(6,15,10,0.7) 100%); }
.login-hero .hero-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px; text-align: center; }
.login-form-side { display: flex; align-items: center; justify-content: center; padding: 48px; }
.login-form-side .inner { width: 100%; max-width: 420px; }

.auth-icon { width: 64px; height: 64px; border-radius: 50%; background: #e7f3ec; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.auth-header { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 32px; }
.auth-header h2 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 26px; color: #151515; margin: 0 0 8px; }
.auth-header p { font-size: 15px; color: #767676; margin: 0; }

.field { position: relative; }
.field svg.icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="date"] {
  width: 100%; box-sizing: border-box; padding: 15px 16px 15px 46px; font-size: 15px;
  border: 1.5px solid #e2e2e2; border-radius: 10px; outline: none; font-family: 'Inter', sans-serif; color: #151515;
}
.field input:focus { border-color: #0f5132; }
.field input.pw { padding-right: 46px; }
.field .pw-toggle { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); cursor: pointer; background: none; border: none; padding: 0; line-height: 0; }
.field .hint { font-size: 12.5px; color: #9a9a9a; margin: 6px 0 0 4px; }

.btn-login { display: block; width: 100%; padding: 16px; background: #0f5132; color: #fff; border: none; border-radius: 10px; font-size: 16px; font-weight: 600; font-family: 'Poppins', sans-serif; cursor: pointer; letter-spacing: 0.2px; text-align: center; text-decoration: none; }
.btn-login:hover { background: #0a3d24; color: #fff; text-decoration: none; }
.btn-outline { display: block; width: 100%; padding: 15px; background: #ffffff; color: #0f5132; border: 1.5px solid #0f5132; border-radius: 10px; font-size: 15.5px; font-weight: 600; font-family: 'Poppins', sans-serif; cursor: pointer; text-align: center; text-decoration: none; }
.btn-outline:hover { background: #e7f3ec; color: #0f5132; text-decoration: none; }

.alert-box, .alert { position: relative; padding: 12px 40px 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 18px; word-break: break-word; }
.alert-warning { background: #fff8e5; color: #8a6116; border: 1px solid #f3e2a9; }
.alert-info, .alert-info.alert { background: #e8f1fb; color: #0b4a86; border: 1px solid #bcd9f5; }
.alert-success, .alert-success.alert { background: #e7f3ec; color: #0f5132; border: 1px solid #bfe0cd; }
.alert-danger, .alert-danger.alert { background: #fdecea; color: #b3261e; border: 1px solid #f5c6c3; }
.alert .btn-close { position: absolute; top: 10px; right: 12px; width: 16px; height: 16px; background: transparent; border: none; cursor: pointer; opacity: 0.5; font-size: 0; }
.alert .btn-close::before { content: "\2715"; font-size: 14px; color: inherit; opacity: 0.6; }
.alert .btn-close:hover::before { opacity: 1; }

.auth-footnote { text-align: center; font-size: 14px; color: #4a4a4a; margin: 24px 0 0; }
.auth-copyright { text-align: center; font-size: 12.5px; color: #a3a3a3; margin: 24px 0 0; }
.auth-back-row { display: flex; align-items: center; justify-content: center; font-size: 14px; margin-top: 18px; }

.login-form-side .inner.wide { max-width: 640px; }

.field-row { display: flex; gap: 14px; }
.field-row .field { flex: 1; min-width: 0; }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 4px 0; font-size: 12px; color: #9a9a9a; text-transform: uppercase; letter-spacing: .05em; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #e2e2e2; }

@media (max-width: 860px) {
  .login-grid {
    grid-template-columns: 1fr;
    min-height: 100svh;
    background: #eaf6ee;
  }
  .login-hero { display: none; }
  .login-form-side { padding: 28px 18px; }
  .login-form-side .inner {
    background: #ffffff;
    border-radius: 18px;
    padding: 28px 22px;
    box-shadow: 0 10px 30px rgba(15, 81, 50, .12);
  }
  .auth-icon { width: 56px; height: 56px; }
  .auth-header { margin-bottom: 24px; }
  .auth-header h2 { font-size: 22px; }
  .auth-header p { font-size: 14px; }
  .field input[type="text"],
  .field input[type="email"],
  .field input[type="password"],
  .field input[type="date"] { padding: 13px 16px 13px 44px; font-size: 16px; }
  .btn-login, .btn-outline { padding: 14px; font-size: 15px; }
}

@media (max-width: 480px) {
  .field-row { flex-direction: column; gap: 18px; }
  .login-form-side { padding: 20px 14px; }
  .login-form-side .inner { padding: 24px 18px; border-radius: 14px; }
}