/* Theme đăng nhập AgriGreen (ADR-0136). Token, font theo web/ui-shell/src/styles.css (Design Sample); bố cục theo BRD Hình 3a. */
@font-face { font-family: "Roboto"; font-weight: 400; font-display: swap; src: url(../fonts/roboto-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-weight: 400; font-display: swap; src: url(../fonts/roboto-vietnamese-400-normal.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Roboto"; font-weight: 500; font-display: swap; src: url(../fonts/roboto-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-weight: 500; font-display: swap; src: url(../fonts/roboto-vietnamese-500-normal.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Roboto"; font-weight: 700; font-display: swap; src: url(../fonts/roboto-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-weight: 700; font-display: swap; src: url(../fonts/roboto-vietnamese-700-normal.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Noto Serif"; font-weight: 700; font-display: swap; src: url(../fonts/noto-serif-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Serif"; font-weight: 700; font-display: swap; src: url(../fonts/noto-serif-vietnamese-700-normal.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }

:root {
  --ag-font-serif: "Noto Serif", Georgia, serif;
  --ag-font-sans: "Roboto", system-ui, sans-serif;
  --ag-green-800: #123b24;
  --ag-green-650: #007f22;
  --ag-green-600: #00a82d;
  --ag-green-50: #e6f6ea;
  --ag-ink: #0f172a;
  --ag-text: #1e293b;
  --ag-muted: #64748b;
  --ag-line: #e2e8f0;
  --ag-red: #b91c1c;
  --ag-red-50: #fdecec;
  --ag-amber: #b45309;
  --ag-amber-50: #fef3c7;
  --ag-blue: #0369a1;
  --ag-blue-50: #e0f2fe;
}

html, body.ag-kc { margin: 0; padding: 0; height: auto; background: #123b24; }
body.ag-kc, body.ag-kc input, body.ag-kc button, body.ag-kc select, body.ag-kc textarea { font-family: var(--ag-font-sans); }
body.ag-kc { font-size: 14px; color: var(--ag-text); }
body.ag-kc a { color: var(--ag-green-650); }

.ag-kc-hero { min-height: 100vh; display: flex; flex-direction: column; background: center/cover no-repeat; position: relative; padding: 0 5.5vw; }
.ag-kc-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,40,25,.35), rgba(10,40,25,.55)); }
.ag-kc-hero > * { position: relative; }
.ag-kc-top { display: flex; align-items: center; gap: 12px; padding: 28px 0; color: #fff; font-weight: 700; font-size: 18px; }
.ag-kc-top img { width: 46px; height: 46px; border-radius: 10px; background: #fff; }

.ag-kc-main { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 48px; padding: 24px 0; }
.ag-kc-intro { max-width: 640px; color: #fff; }
.ag-kc-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid rgba(255,255,255,.6); border-radius: 999px;
  font-weight: 700; font-size: 13px; text-transform: uppercase; background: rgba(255,255,255,.08); }
.ag-kc-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.ag-kc-intro h1 { font-family: var(--ag-font-serif); font-weight: 700; font-size: 44px; line-height: 1.2; margin: 24px 0 16px; color: #fff; }
.ag-kc-intro p { font-size: 17px; line-height: 1.6; margin: 0; color: #fff; }

.ag-kc-card { width: 420px; max-width: 100%; flex: none; background: #fff; border-radius: 18px; padding: 32px 30px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.ag-kc-card h2 { font-family: var(--ag-font-serif); font-weight: 700; font-size: 28px; color: var(--ag-ink); margin: 0 0 4px; }
.ag-kc-sub { color: var(--ag-muted); margin: 0 0 18px; }
.ag-kc-card .required { color: var(--ag-red); }
.ag-kc-username { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0 14px; font-weight: 500; color: var(--ag-ink); }

.ag-kc-field { margin-bottom: 14px; }
.ag-kc-field label { display: block; font-weight: 500; color: var(--ag-ink); margin-bottom: 6px; }
.ag-kc-field input { width: 100%; height: 44px; border: 1px solid var(--ag-line); border-radius: 8px; padding: 0 12px; font-size: 15px; color: var(--ag-ink);
  background: #fff; box-sizing: border-box; }
.ag-kc-field input:focus { outline: 2px solid #bfe7cb; border-color: var(--ag-green-600); }
.ag-kc-field input[aria-invalid="true"] { border-color: var(--ag-red); }
.ag-kc-pw { position: relative; }
.ag-kc-pw input { padding-right: 64px; }
.ag-kc-show { position: absolute; right: 6px; top: 6px; height: 32px; padding: 0 10px; border: 0; background: none; color: var(--ag-green-650);
  font-weight: 700; cursor: pointer; }
.ag-kc-options { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 18px; }
.ag-kc-options a { font-weight: 500; }
.ag-kc-check { display: inline-flex; align-items: center; gap: 8px; color: var(--ag-text); cursor: pointer; margin: 0; font-weight: 400; }
.ag-kc-check input { width: 18px; height: 18px; accent-color: var(--ag-green-600); margin: 0; }
.ag-kc-btn { width: 100%; height: 46px; border: 0; border-radius: 8px; background: var(--ag-green-650); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; }
.ag-kc-btn:hover { filter: brightness(.95); }
.ag-kc-btn:disabled { opacity: .6; cursor: progress; }

.ag-kc-alert { margin: 16px 0; padding: 12px 14px; border-radius: 10px; border: 1px solid; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.ag-kc-alert.error { background: var(--ag-red-50); border-color: #f5c2c2; color: var(--ag-red); }
.ag-kc-alert.warning { background: var(--ag-amber-50); border-color: #f6d79b; color: var(--ag-amber); }
.ag-kc-alert.success { background: var(--ag-green-50); border-color: #bfe7cb; color: var(--ag-green-800); }
.ag-kc-alert.info { background: var(--ag-blue-50); border-color: #b9e0f6; color: var(--ag-blue); }
.ag-kc-alert.error span { color: #7f1d1d; }

.ag-kc-help { display: none; margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--ag-green-50); color: var(--ag-green-800); }
.ag-kc-help:target { display: block; }
.ag-kc-support { text-align: center; color: var(--ag-muted); margin: 18px 0 0; }
.ag-kc-support a { text-decoration: underline; }

.ag-kc-copy { color: #fff; font-size: 13px; padding: 24px 0 28px; }

/* Các trang khác (đổi mật khẩu, cài OTP, nhập OTP, thông báo) dùng lớp PatternFly của theme gốc: chỉnh màu, font theo Design Sample. */
.ag-kc-card .pf-c-form-control, .ag-kc-card .form-control { min-height: 44px; border-radius: 8px; font-size: 15px; }
.ag-kc-card .pf-c-button.pf-m-primary, .ag-kc-card .btn-primary { background: var(--ag-green-650); border-color: var(--ag-green-650); border-radius: 8px;
  min-height: 44px; font-weight: 700; color: #fff; }
.ag-kc-card .pf-c-button.pf-m-primary:hover, .ag-kc-card .btn-primary:hover { background: var(--ag-green-800); border-color: var(--ag-green-800); }
.ag-kc-card .pf-c-button.pf-m-control, .ag-kc-card .btn-default { border-radius: 8px; }
.ag-kc-card .pf-c-form__label-text, .ag-kc-card label { font-weight: 500; color: var(--ag-ink); }
.ag-kc-card #kc-totp-settings, .ag-kc-card ol { padding-left: 18px; }
.ag-kc-card #kc-totp-secret-qr-code { max-width: 180px; }
.ag-kc-card #kc-form-buttons { margin-top: 16px; }
.ag-kc-card #kc-info { margin-top: 16px; }

@media (max-width: 900px) {
  .ag-kc-main { flex-direction: column; align-items: stretch; }
  .ag-kc-intro h1 { font-size: 30px; }
  .ag-kc-card { width: 100%; padding: 24px 18px; }
}
