/* ===========================================================================
   Fiqi Group — authentication screens (soo-gal.html, furaha.html)
   The photographic brand panel lives in portal.css; this is the form side.
   =========================================================================== */

.auth-main { background: #f6f7f4; }
.auth-card { max-width: 400px; }

.auth-logo { display: flex; align-items: center; gap: 11px; margin-bottom: 30px; text-decoration: none; color: inherit; }
.auth-logo img { width: 40px; height: 40px; border-radius: 10px; border: 1px solid #e5e7e2; background: #fff; object-fit: contain; }
.auth-logo b { font-family: Spectral, Georgia, serif; font-size: 17px; }

.auth-card h1 { font-size: clamp(26px, 2.6vw, 31px); line-height: 1.15; letter-spacing: -.012em; }
.auth-lead { font-size: 15px; color: #5f6a63; margin-top: 9px; line-height: 1.6; }

.af { display: grid; gap: 16px; margin-top: 28px; }
.af-field { display: grid; gap: 7px; }
.af-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.af label { font-size: 13.5px; font-weight: 600; color: #3a453f; }
.af-link { font-size: 13px; color: var(--mint); font-weight: 600; text-decoration: none; background: none; border: 0; cursor: pointer; padding: 0; font-family: inherit; }
.af-link:hover { text-decoration: underline; }

.af-input { position: relative; }
.af-input input {
  width: 100%; font: inherit; font-size: 15.5px; color: #17201b;
  padding: 12px 14px; border-radius: 10px;
  border: 1px solid #d5dad3; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.af-input input:focus { outline: none; border-color: #6f9a88; box-shadow: 0 0 0 3px rgba(47, 90, 75, .13); }
.af-input input[aria-invalid="true"] { border-color: #c0675a; }
.af-input.has-toggle input { padding-inline-end: 76px; }
.af-toggle {
  position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%);
  font: inherit; font-size: 12.5px; font-weight: 600; color: #4c5852;
  background: #f1f3ef; border: 0; border-radius: 7px; padding: 6px 10px; cursor: pointer;
}
.af-toggle:hover { background: #e7ebe5; }
.af-code input { font-size: 26px; letter-spacing: .42em; text-align: center; font-variant-numeric: tabular-nums; padding-block: 14px; }

.af-btn {
  width: 100%; font: inherit; font-size: 15.5px; font-weight: 600;
  padding: 13px 18px; border-radius: 10px; border: 0; cursor: pointer;
  background: var(--mint); color: #fff;
  box-shadow: 0 1px 2px rgba(20, 43, 35, .3);
  display: inline-flex; justify-content: center; align-items: center; gap: 9px;
  transition: background .15s ease;
}
.af-btn:hover:not([disabled]) { background: var(--mint-700); }
.af-btn[disabled] { opacity: .65; cursor: progress; }
.af-btn-sec { background: #fff; color: #17201b; border: 1px solid #d5dad3; box-shadow: none; }
.af-btn-sec:hover:not([disabled]) { background: #f4f5f2; }

.af-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: af-spin .7s linear infinite; }
@keyframes af-spin { to { transform: rotate(360deg); } }

.af-msg { font-size: 14px; line-height: 1.55; border-radius: 10px; padding: 11px 14px; }
.af-msg[hidden] { display: none; }
.af-msg.bad { color: #8f2f22; background: #f8ebe9; border: 1px solid #efd5d0; }
.af-msg.ok  { color: #24503f; background: #e6efe9; border: 1px solid #cfdfd5; }
.af-msg.info { color: #3a453f; background: #fff; border: 1px solid #e5e7e2; }

.af-sep { display: flex; align-items: center; gap: 12px; color: #9aa49d; font-size: 12.5px; margin: 26px 0 0; }
.af-sep::before, .af-sep::after { content: ""; flex: 1; height: 1px; background: #e2e5df; }

.af-aside {
  margin-top: 18px; padding: 15px 16px; border-radius: 12px;
  background: #fff; border: 1px solid #e5e7e2; font-size: 14px; line-height: 1.6; color: #45514a;
}
.af-aside b { color: #17201b; }
.af-aside a { color: var(--mint); font-weight: 600; text-decoration: none; }

.af-foot { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 30px; font-size: 13px; color: #8a948d; }
.af-foot a { color: inherit; text-decoration: none; }
.af-foot a:hover { color: #17201b; }

/* password strength — length is what is rewarded, never symbols */
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.pw-meter i { height: 4px; border-radius: 2px; background: #e2e5df; transition: background .2s ease; }
.pw-meter[data-level="1"] i:nth-child(-n+1) { background: #c0675a; }
.pw-meter[data-level="2"] i:nth-child(-n+2) { background: #c49a3c; }
.pw-meter[data-level="3"] i:nth-child(-n+3) { background: #6f9a88; }
.pw-meter[data-level="4"] i { background: var(--mint); }
.pw-hint { font-size: 12.5px; color: #6d7871; line-height: 1.5; }

.auth-who {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: 12px; background: #fff; border: 1px solid #e5e7e2; margin-top: 22px;
}
.auth-who .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--mint-100); color: var(--mint-800); font-weight: 700; flex: none; }
.auth-who b { display: block; font-size: 14.5px; }
.auth-who small { display: block; font-size: 12.5px; color: #6d7871; }

@media (max-width: 1000px) {
  .auth-main { min-height: 100vh; align-items: flex-start; padding-top: 44px; }
}

/* ------------------------------------------------ industry-standard pass */
.auth-card { max-width: 420px; }
.af-tight { margin-top: 18px; }
.af-sso { display: grid; gap: 10px; margin-top: 26px; }
#oauthMsg { margin-top: 18px; }

/* Google's branding guidance: white surface, the four-colour G, neutral text. */
.af-google {
  position: relative; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: inherit; font-size: 15.5px; font-weight: 600; line-height: 1.2; color: #1f1f1f;
  background: #fff; border: 1px solid #c9cfc8; border-radius: 10px; padding: 13px 18px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(20, 43, 35, .06);
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.af-google:hover:not([disabled]) { background: #f8faf8; border-color: #aab4ad; box-shadow: 0 2px 6px rgba(20, 43, 35, .08); }
.af-google:focus-visible { outline: 3px solid rgba(47, 90, 75, .28); outline-offset: 2px; }
.af-google[disabled] { opacity: .7; cursor: progress; }

.af-last {
  position: absolute; inset-inline-end: 10px; top: 50%; transform: translateY(-50%);
  font-family: inherit; font-size: 11px; font-weight: 600; line-height: 1; font-style: normal;
  color: #24503f; background: #e6efe9; border-radius: 99px; padding: 5px 8px;
}
.af-btn { position: relative; }
.af-last-dark { color: #fff; background: rgba(255,255,255,.18); }
.af-last[hidden] { display: none; }

.af-eye {
  position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px;
  color: #5f6a63; background: transparent; border: 0; cursor: pointer;
}
.af-eye:hover { background: #f1f3ef; color: #17201b; }
.af-eye:focus-visible { outline: 2px solid #6f9a88; }
.af-eye .eye-off { display: none; }
.af-eye[aria-pressed="true"] .eye-on { display: none; }
.af-eye[aria-pressed="true"] .eye-off { display: block; }
.af-input.has-toggle input { padding-inline-end: 50px; }
.af-input input::placeholder { color: #a3aca6; }

.af-caps { margin: 2px 0 0; font-size: 12.5px; font-weight: 600; color: #7a5208; }
.af-caps[hidden] { display: none; }

.af-trust { display: flex; gap: 8px; align-items: flex-start; margin: 18px 0 0; font-size: 12.5px; line-height: 1.5; color: #6d7871; }
.af-trust svg { flex: none; margin-top: 1px; color: #3f6b5c; }
.auth-logo b em { font-style: normal; font-weight: 500; color: #527f6e; }
.auth-logo img { border: 0; background: transparent; width: 44px; height: 44px; }
.auth-logo img { height: 36px; width: auto; }
