/* ═══════════════════════════════════════════════
   TAB Staff Login
   tab-login.css
   ═══════════════════════════════════════════════ */

.tab-login-wrap {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.tab-login-box {
  background: #fff;
  border: 1.5px solid #e2ddd0;
  border-radius: 16px;
  padding: 44px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 40px rgba(0,0,0,.1);
}

/* ─── Brand ─── */
.tab-login-brand {
  text-align: center;
  margin-bottom: 28px;
}
.tab-login-logo img {
  max-height: 56px;
  width: auto;
  margin-bottom: 14px;
}
.tab-login-site-name {
  font-size: 20px;
  font-weight: 800;
  color: #1a5c45;
  margin-bottom: 10px;
}
.tab-login-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 6px;
  color: #1e1e1e;
}
.tab-login-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* ─── Error ─── */
.tab-login-error {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fdf2f2;
  border: 1px solid #f1c0c0;
  border-left: 4px solid #b83535;
  color: #7a1c1c;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 13.5px;
  line-height: 1.5;
}
.tab-login-error svg { flex-shrink: 0; color: #b83535; }

/* ─── Form ─── */
.tab-login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tab-login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tab-login-field label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #1e1e1e;
}
.tab-login-field label svg { color: #666; flex-shrink: 0; }

.tab-login-field input[type="text"],
.tab-login-field input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e2ddd0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: #1e1e1e;
  background: #fff;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
  text-transform: none;
}
.tab-login-field input:focus {
  border-color: #1a5c45;
  box-shadow: 0 0 0 3px rgba(26,92,69,.1);
}

/* Password with toggle */
.tab-login-pwd-wrap {
  position: relative;
}
.tab-login-pwd-wrap input {
  padding-right: 44px;
}
.tab-login-toggle-pwd {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  padding: 0;
  display: flex;
  align-items: center;
  transition: color .2s;
}
.tab-login-toggle-pwd:hover { color: #1a5c45; }

/* ─── Remember + Forgot ─── */
.tab-login-remember {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.tab-login-check-label {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  color: #444;
}
.tab-login-check-label input {
  accent-color: #1a5c45;
  width: 15px;
  height: 15px;
  cursor: pointer;
}
.tab-login-forgot {
  color: #1a5c45;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}
.tab-login-forgot:hover { text-decoration: underline; }

/* ─── Submit Button ─── */
.tab-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: #1a5c45 !important;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s, transform .15s;
  text-decoration: none !important;
  margin-top: 4px;
}
.tab-login-btn:hover:not(:disabled) {
  background: #2a7a5c !important;
  transform: translateY(-1px);
}
.tab-login-btn:disabled {
  background: #aaa !important;
  cursor: not-allowed;
  transform: none;
}

/* ─── Footer ─── */
.tab-login-footer {
  text-align: center;
  font-size: 12.5px;
  color: #888;
  margin: 20px 0 0;
  line-height: 1.8;
}
.tab-login-footer a {
  color: #1a5c45;
  text-decoration: none;
  font-weight: 600;
}
.tab-login-footer a:hover { text-decoration: underline; }

/* ─── Access restricted box ─── */
.tab-login-icon { font-size: 40px; text-align: center; margin-bottom: 12px; }
.tab-login-box h2 { text-align: center; margin: 0 0 8px; }
.tab-login-box > p { text-align: center; color: #666; font-size: 14px; }

/* ─── Responsive ─── */
@media (max-width: 480px) {
  .tab-login-box { padding: 32px 20px; border-radius: 12px; }
  .tab-login-title { font-size: 20px; }
}
