/*//////////////////////////////////////////////////////////////////
[ FONTS ]*/

@font-face {
  font-family: Poppins-Regular;
  src: url('../fonts/poppins/Poppins-Regular.ttf');
}
@font-face {
  font-family: Poppins-Medium;
  src: url('../fonts/poppins/Poppins-Medium.ttf');
}
@font-face {
  font-family: Poppins-Bold;
  src: url('../fonts/poppins/Poppins-Bold.ttf');
}
@font-face {
  font-family: Poppins-SemiBold;
  src: url('../fonts/poppins/Poppins-SemiBold.ttf');
}


/*//////////////////////////////////////////////////////////////////
[ BRAND CSS VARIABLES — defaults (overridden server-side per brand)
  These are the GAMP FINSERV values; the <style> block injected in
  <head> by Brand.GetCssVarsStyle() replaces them for each client.
]*/

:root {
  --brand-primary:      #38A935;
  --brand-primary-dark: #27ae60;
  --brand-primary-rgb:  56, 169, 53;
  --brand-panel-from:   #0a1a10;
  --brand-panel-mid:    #0f4c1e;
  --brand-panel-to:     #0a1a10;
  --brand-page-bg:      #f2faf2;
  --brand-form-bg:      #ffffff;
  --brand-heading-color:#0a1a10;
}


/*//////////////////////////////////////////////////////////////////
[ RESET ]*/

*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: Poppins-Regular, 'Segoe UI', sans-serif;
  background: var(--brand-panel-from);
}

a {
  font-size: 14px;
  line-height: 1.7;
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.3s;
}
a:hover { color: var(--brand-primary-dark); text-decoration: underline; }

input, button, textarea { outline: none; border: none; font-family: Poppins-Regular, 'Segoe UI', sans-serif; }
button:hover { cursor: pointer; }
ul, li { margin: 0; list-style: none; }


/*//////////////////////////////////////////////////////////////////
[ PAGE WRAPPER ]*/

.login-page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}


/*//////////////////////////////////////////////////////////////////
[ LEFT BRANDING PANEL ]*/

.login-brand-panel {
  width: 44%;
  min-height: 100vh;
  background: linear-gradient(
    145deg,
    var(--brand-panel-from)  0%,
    var(--brand-panel-mid)  50%,
    var(--brand-panel-to)  100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 44px;
  position: relative;
  overflow: hidden;
}

/* decorative ring — top-right */
.login-brand-panel::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(var(--brand-primary-rgb), 0.14);
  top: -90px;
  right: -130px;
  pointer-events: none;
}

/* decorative ring — bottom-left */
.login-brand-panel::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(var(--brand-primary-rgb), 0.10);
  bottom: -60px;
  left: -70px;
  pointer-events: none;
}

/* small inner ring — bottom-right */
.brand-circle-inner {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid rgba(var(--brand-primary-rgb), 0.09);
  bottom: 50px;
  right: 30px;
  pointer-events: none;
}

/* ── Logo & company name ── */
.brand-logo-wrap {
  text-align: center;
  margin-bottom: 36px;
  position: relative;
  z-index: 2;
}

.brand-logo-bg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  padding: 12px 24px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
}

.brand-logo-wrap img {
  width: 200px;
  height: auto;
  display: block;
}

.brand-company-name {
  font-family: Poppins-Bold;
  font-size: 28px;
  color: #ffffff;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-top: 14px;
}

.brand-tagline {
  font-size: 12px;
  color: rgba(255,255,255,0.50);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-top: 6px;
}

/* ── Accent divider ── */
.brand-divider {
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-primary-dark));
  border-radius: 2px;
  margin: 26px auto;
  position: relative;
  z-index: 2;
}

/* ── Feature list ── */
.brand-features {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 300px;
}

.brand-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.brand-feature-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(var(--brand-primary-rgb), 0.14);
  border: 1px solid rgba(var(--brand-primary-rgb), 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--brand-primary);
}

.brand-feature-text h4 {
  font-family: Poppins-SemiBold;
  font-size: 13px;
  color: #ffffff;
  margin-bottom: 2px;
}

.brand-feature-text p {
  font-size: 11.5px;
  color: rgba(255,255,255,0.42);
  line-height: 1.55;
}

/* ── Footer note ── */
.brand-footer-note {
  position: relative;
  z-index: 2;
  margin-top: 36px;
  font-size: 11px;
  color: rgba(255,255,255,0.28);
  text-align: center;
  letter-spacing: 0.4px;
}

/* ── Developer credit ── */
.brand-dev-note {
  position: relative;
  z-index: 2;
  margin-top: 8px;
  font-size: 10.5px;
  color: rgba(255,255,255,0.18);
  text-align: center;
  letter-spacing: 0.3px;
}

.brand-dev-note a {
  font-size: 10.5px;
  color: rgba(255,255,255,0.28);
  font-family: Poppins-Medium;
  transition: color 0.3s;
}

.brand-dev-note a:hover {
  color: var(--brand-primary);
  text-decoration: none;
}


/*//////////////////////////////////////////////////////////////////
[ RIGHT FORM PANEL ]*/

.login-form-panel {
  width: 56%;
  min-height: 100vh;
  background: var(--brand-page-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
}

.login-form-box {
  width: 100%;
  max-width: 460px;
  background: var(--brand-form-bg);
  border-radius: 20px;
  padding: 48px 44px;
  box-shadow: 0 10px 60px rgba(0,0,0,0.09);
}

/* ── Mobile-only logo (hidden on desktop) ── */
.mobile-logo {
  display: none;
  text-align: center;
  margin-bottom: 26px;
}

.mobile-logo .brand-logo-bg {
  padding: 10px 20px;
  border-radius: 14px;
}

.mobile-logo img {
  width: 130px;
  height: auto;
  display: block;
}

.mobile-logo-title {
  font-family: Poppins-Bold;
  font-size: 18px;
  color: var(--brand-heading-color);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 10px;
}

/* ── Form heading ── */
.form-heading {
  margin-bottom: 30px;
}

.form-heading h2 {
  font-family: Poppins-Bold;
  font-size: 25px;
  color: var(--brand-heading-color);
  margin-bottom: 5px;
}

.form-heading p {
  font-size: 13px;
  color: #8a97a8;
  line-height: 1.5;
}

.form-heading p strong {
  color: var(--brand-primary);
  font-family: Poppins-SemiBold;
}


/*//////////////////////////////////////////////////////////////////
[ FORM FIELDS ]*/

.field-group {
  margin-bottom: 20px;
}

.field-label {
  display: block;
  font-family: Poppins-Medium;
  font-size: 11.5px;
  color: #4a5568;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 7px;
}

/* ── Text / Password inputs ── */
.field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 14px;
  color: #b0bec5;
  font-size: 16px;
  pointer-events: none;
  transition: color 0.3s;
  z-index: 2;
}

.field-input {
  width: 100%;
  height: 50px;
  padding: 0 44px 0 42px;
  font-family: Poppins-Regular;
  font-size: 14px;
  color: #2d3748;
  background: #f7f9fc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.field-input::placeholder { color: #c0cad5; }

.field-input:focus {
  border-color: var(--brand-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.13);
}

.field-wrap:focus-within .field-icon {
  color: var(--brand-primary);
}

/* ── Password toggle button ── */
.toggle-pass {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: #b0bec5;
  font-size: 15px;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.3s;
  z-index: 2;
}
.toggle-pass:hover { color: var(--brand-primary); }


/*//////////////////////////////////////////////////////////////////
[ CAPTCHA ROW ]*/

.captcha-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.captcha-image-wrap {
  flex: 0 0 140px;
  height: 50px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #f0f4f8;
}

.captcha-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.captcha-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.captcha-input-wrap .field-icon {
  font-size: 14px;
}

.captcha-field {
  width: 100%;
  height: 50px;
  padding: 0 14px 0 42px;
  font-family: Poppins-Regular;
  font-size: 14px;
  color: #2d3748;
  background: #f7f9fc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.captcha-field::placeholder { color: #c0cad5; }

.captcha-field:focus {
  border-color: var(--brand-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.13);
}

.captcha-input-wrap:focus-within .field-icon {
  color: var(--brand-primary);
}


/*//////////////////////////////////////////////////////////////////
[ VALIDATION ERROR STATE ]*/

.validate-msg {
  display: none;
  font-size: 11.5px;
  color: #e53e3e;
  margin-top: 5px;
  padding-left: 2px;
}

.field-group.has-error .field-input,
.field-group.has-error .captcha-field {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229,62,62,0.10);
}

.field-group.has-error .validate-msg {
  display: block;
}


/*//////////////////////////////////////////////////////////////////
[ LOGIN BUTTON ]*/

.login-btn-wrap {
  margin-top: 26px;
}

.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  color: #ffffff;
  font-family: Poppins-SemiBold;
  font-size: 14.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: opacity 0.25s, transform 0.15s, box-shadow 0.25s;
  box-shadow: 0 6px 22px rgba(var(--brand-primary-rgb), 0.38);
}

.login-btn:hover {
  opacity: 0.90;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(var(--brand-primary-rgb), 0.44);
}

.login-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(var(--brand-primary-rgb), 0.30);
}


/*//////////////////////////////////////////////////////////////////
[ RESPONSIVE ]*/

@media (max-width: 991px) {
  .login-brand-panel { width: 40%; padding: 40px 28px; }
  .brand-company-name { font-size: 22px; }
  .login-form-panel   { width: 60%; }
  .login-form-box     { padding: 40px 30px; }
}

@media (max-width: 767px) {
  .login-page { flex-direction: column; }

  .login-brand-panel { display: none; }

  .login-form-panel {
    width: 100%;
    min-height: 100vh;
    align-items: flex-start;
    padding: 50px 16px 40px;
    background: linear-gradient(
      145deg,
      var(--brand-panel-from)  0%,
      var(--brand-panel-mid)  55%,
      var(--brand-panel-to)  100%
    );
  }

  .login-form-box {
    max-width: 100%;
    padding: 32px 22px;
    border-radius: 16px;
  }

  .mobile-logo { display: block; }

  .form-heading h2 { font-size: 22px; }

  .captcha-image-wrap { flex: 0 0 115px; }
}

@media (max-width: 400px) {
  .login-form-box { padding: 26px 16px; }
  .captcha-image-wrap { flex: 0 0 95px; }
}
