/* =========================================================
   Cổng thông tin sinh viên & nhập học trực tuyến - Đông Á
   Namespace: .aps-*
   ========================================================= */

/* ---- Montserrat (display / tiêu đề / nút) ---- */
@font-face {
  font-family: 'Montserrat';
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Montserrat-Regular.otf");
}

@font-face {
  font-family: 'Montserrat';
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/Montserrat-SemiBold.otf");
}

@font-face {
  font-family: 'Montserrat';
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Montserrat-Bold.otf");
}

@font-face {
  font-family: 'Montserrat';
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/Montserrat-ExtraBold.otf");
}

@font-face {
  font-family: 'Montserrat';
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/Montserrat-Black.otf");
}

/* ---- Mulish (body / input) ---- */
@font-face {
  font-family: 'Mulish';
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Mulish-Regular.ttf");
}

@font-face {
  font-family: 'Mulish';
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/Mulish-Medium.ttf");
}

@font-face {
  font-family: 'Mulish';
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/Mulish-SemiBold.ttf");
}

@font-face {
  font-family: 'Mulish';
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Mulish-Bold.ttf");
}

@font-face {
  font-family: 'Mulish';
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/Mulish-ExtraBold.ttf");
}

:root {
  --aps-blue: #1b52c0;
  --aps-blue-2: #2f6fe0;
  --aps-navy: #12336f;
  --aps-navy-2: #0f2c78;
  --aps-orange: #f5811f;
  --aps-orange-2: #f39d16;
  --aps-ink: #1f2d4a;
  --aps-muted: #5b6b86;
  --aps-line: #e3e9f5;
  --aps-card: #ffffff;
  --aps-radius-card: 20px;
  --aps-radius-field: 12px;
  --aps-radius-btn: 12px;
  --aps-shadow-card: 0 24px 60px rgba(8, 25, 74, .28);
  --aps-shadow-soft: 0 8px 24px rgba(8, 25, 74, .10);
  --aps-font: 'Mulish', "Segoe UI", Roboto, Arial, sans-serif;
  --aps-display: 'Montserrat', "Segoe UI", Arial, sans-serif;
}

.aps-wrap.aps-login *,
.aps-wrap.aps-login *::before,
.aps-wrap.aps-login *::after {
  box-sizing: border-box;
}

html.aps-html,
body.aps-body {
  margin: 0;
  padding: 0;
  font-family: var(--aps-font);
  color: var(--aps-ink);
  -webkit-font-smoothing: antialiased;
}

body.aps-body {
  min-height: 100vh;
  background: #12377f url("../images/bg-login.png") center/cover no-repeat fixed;
  padding: 0;
}

body.aps-body > form,
body.aps-body form#formLoginSSO {
  width: 100%;
}

.aps-wrap.aps-login {
  padding: 40px;
}

.aps-wrap {
  width: 100%;
  max-width: 1440px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 0 auto;
}

/* ---------------- Header ---------------- */
.aps-header {
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  align-items: center;
  gap: 16px;
}

.aps-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.aps-brand img {
  width: auto;
  height: 120px;
}

.aps-header_right {
  min-width: 0;
}

.aps-header_center {
  text-align: center;
}

.aps-title {
  font-family: var(--aps-display);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .5px;
  margin: 0;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .28);
  line-height: 1.08;
}

.aps-subnote {
  color: #c6d7f6;
  font-size: 14.5px;
  font-weight: 500;
  margin: 0;
}

/* ---------------- Main layout ---------------- */
.aps-main {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.aps-card {
  background: #f3f6ff;
  border-radius: var(--aps-radius-card);
  box-shadow: var(--aps-shadow-card);
  padding: 20px 30px;
}

/* ---- Left: intro card ---- */
.aps-intro_head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.aps-intro_badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(180deg, #2f6fe0, #1b52c0);
  display: grid;
  place-items: center;
  flex: none;
}

.aps-intro_badge svg {
  width: 26px;
  height: 26px;
}

.aps-intro_title {
  font-family: var(--aps-display);
  color: var(--aps-blue);
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}

.aps-intro_lead {
  position: relative;
  color: #222;
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 20px;
  padding-right: 140px;
}

.aps-intro_lead b {
  color: var(--aps-ink);
}

.aps-intro_illus {
  position: absolute;
  right: 0;
  top: -30px;
  width: 268px;
}

/* steps box */
.aps-steps-thanhtoan {
  border: 1px solid var(--aps-line);
  border-radius: 16px;
  background: #fff;
  padding: 30px 15px 15px 15px;
  display: grid;
  position: relative;
}

.aps-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  position: relative;
  margin-bottom: 20px;
}

.aps-step {
  text-align: center;
  padding: 0 6px;
  border-right: 1px dotted #e1e1e1;
}

.aps-step:last-child {
  border-right: 0 dotted #e1e1e1 !important;
}

.aps-step_top {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.aps-step_badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(180deg, #2f6fe0, #1b52c0);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  font-family: var(--aps-display);
  display: grid;
  place-items: center;
  flex: none;
  margin-top: -30px;
}

.aps-step_icon {
  display: grid;
  place-items: center;
  height: 52px;
}

.aps-step_icon img {
  height: 52px;
  width: auto;
  display: block;
}

.aps-step_title {
  font-family: var(--aps-display);
  color: var(--aps-blue);
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  line-height: 1.5;
  min-height: 2.4em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aps-step_text {
  color: var(--aps-muted);
  font-size: 13px;
  line-height: 18px;
  max-width: 200px;
  margin: 0 auto;
}

.aps-steps_arrow {
  position: absolute;
  top: 30px;
  color: #b9c8e6;
  display: grid;
  place-items: center;
}

.aps-steps_arrow svg {
  width: 30px;
  height: 10px;
}

.aps-steps_arrow--1 {
  left: 31%;
  background: #fff;
  padding: 10px 0;
}

.aps-steps_arrow--2 {
  left: 64.8%;
  background: #fff;
  padding: 10px 0;
}

/* left action buttons */
.aps-intro_actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.aps-intro_actions .aps-btn {
  width: auto;
  flex: 1 1 auto;
}

.aps-intro_actions .aps-btn:only-child {
  flex: 1 1 100%;
}

/* ---- Right: login card ---- */
.aps-card.aps-login-card {
  display: flex;
  flex-direction: column;
}

.aps-login_lock {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  font-size: 30px;
  color: var(--aps-blue-2);
  background-color: #fff;
  display: grid;
  place-items: center;
  margin: -56px auto 10px;
  box-shadow: 0 5px 12px rgba(27, 82, 192, .45);
  border: 5px solid #fff;
}

.aps-login_title {
  font-family: var(--aps-display);
  text-align: center;
  color: var(--aps-navy);
  font-size: 26px;
  font-weight: 700;
  margin: 6px 0 22px;
}

.aps-notify {
  display: block;
  width: 100%;
  text-align: center;
  margin: 0 0 12px;
  min-height: 0;
}

.aps-notify:empty {
  display: none;
}

.aps-field {
  position: relative;
  margin-bottom: 16px;
}

.aps-field_icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa9c4;
  display: grid;
  place-items: center;
  z-index: 2;
  pointer-events: none;
}

.aps-field_icon svg {
  width: 20px;
  height: 20px;
}

.aps-field input,
.aps-field input[type="text"],
.aps-field input[type="password"] {
  width: 100%;
  height: 48px;
  border: 1px solid #e1e1e1;
  border-radius: var(--aps-radius-field);
  background: #f6f8fd;
  padding: 0 46px;
  font-size: 15px;
  font-family: var(--aps-font);
  color: var(--aps-ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
  box-sizing: border-box;
}

.aps-field input::placeholder {
  color: #9aa9c4;
}

.aps-field input:focus {
  border-color: var(--aps-blue-2);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 111, 224, .12);
}

.aps-field_toggle {
  font-size: 16px;
  position: absolute;
  right: 14px;
  top: 51%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #8b9ab6;
  padding: 4px;
  display: grid;
  place-items: center;
  z-index: 2;
}

.aps-login_meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2px 2px 20px;
}

.aps-link {
  color: var(--aps-blue);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.aps-link:hover {
  text-decoration: underline;
}

.aps-link--help {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* buttons */
.aps-btn {
  font-family: var(--aps-display);
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 18px;
  transition: transform .05s ease, box-shadow .15s ease, filter .15s ease;
  text-decoration: none;
  width: 100%;
}

.aps-btn:active {
  transform: translateY(1px);
}

.aps-btn svg {
  width: 20px;
  height: 20px;
}

.aps-btn--primary {
  background: linear-gradient(180deg, #1c4aa8, #12336f);
  color: #fff;
  font-size: 17px;
  height: 52px;
  box-shadow: 0 5px 12px rgba(18, 51, 111, .35);
}

.aps-btn--primary:hover {
  filter: brightness(1.06);
  background: linear-gradient(180deg, #1c4aa8, #1c4aa8);
}

.aps-btn--orange {
  background: linear-gradient(180deg, #fb9b2e, #f5811f);
  color: #fff;
  box-shadow: 0 5px 12px rgba(245, 129, 31, .35);
}

.aps-btn--outline {
  background: #fff;
  color: var(--aps-navy);
  border: 1.5px solid var(--aps-line);
}

.aps-btn--google {
  background: linear-gradient(180deg, #ee7855, #dd4b39);
  color: #fff;
  border: none;
  height: 52px;
  font-family: var(--aps-font);
  font-weight: 700;
  box-shadow: 0 5px 12px rgba(221, 75, 57, .3);
}

.aps-btn--google svg {
  background: #fff;
  border-radius: 50%;
  padding: 3px;
  width: 26px;
  height: 26px;
  box-sizing: border-box;
}

.aps-btn--microsoft {
  background: linear-gradient(180deg, #2f6fe0, #1b52c0);
  color: #fff;
  border: none;
  height: 52px;
  font-family: var(--aps-font);
  font-weight: 700;
  margin-top: 10px;
  box-shadow: 0 5px 12px rgba(27, 82, 192, .35);
  letter-spacing: .3px;
}

.aps-btn--google img {
  width: 20px;
  height: 20px;
}

.aps-btn--microsoft img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.aps-btn--google:hover {
  filter: brightness(1.06);
  color: #fff;
}

.aps-btn--microsoft:hover {
  filter: brightness(1.08);
  color: #fff;
  box-shadow: 0 7px 16px rgba(27, 82, 192, .45);
}

.aps-divider {
  text-align: center;
  color: #97a4bd;
  font-size: 13.5px;
  margin: 18px 0 14px;
  position: relative;
}

.aps-divider::before,
.aps-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 34%;
  height: 1px;
  background: var(--aps-line);
}

.aps-divider::before {
  left: 0;
}

.aps-divider::after {
  right: 0;
}

/* ---------------- Footer features ---------------- */
.aps-features {
  background: rgba(11, 38, 96, .55);
  border: 2px solid rgba(255, 255, 255, .2);
  border-radius: 20px;
  backdrop-filter: blur(4px);
  padding: 22px 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.aps-feature {
  display: flex;
  align-items: center;
  gap: 14px;
}

.aps-feature:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, .12);
  padding-right: 24px;
}

.aps-feature_icon {
  width: 50px;
  height: 50px;
  flex: none;
  display: grid;
  place-items: center;
  color: #bcd3ff;
}

.aps-feature_icon i {
  font-size: 44px;
  font-weight: 300 !important;
}

.aps-feature_title {
  font-family: var(--aps-display);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 3px;
}

.aps-feature_text {
  color: #b9caea;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

/* Marquee copyright */
.aps-copyright {
  color: #c6d7f6;
  font-size: 13px;
  text-align: center;
  margin-top: 12px;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
  .aps-wrap.aps-login {
    padding: 10px;
  }

  .aps-card {
    padding: 15px !important;
  }

  .aps-wrap {
    gap: 5px !important;
  }

  .aps-header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .aps-brand {
    justify-content: center;
  }

  .aps-title {
    font-size: 30px;
  }

  .aps-main {
    grid-template-columns: 1fr;
  }

  .aps-intro_lead {
    padding-right: 0;
  }

  .aps-intro_illus {
    display: none;
  }
}

@media (max-width: 720px) {
  .aps-features {
    padding: 15px !important;
    margin-top: 10px;
  }

  .aps-step_badge {
    margin-top: 0px !important;
  }

  .aps-step {
    padding: 0 0px 20px 0;
    border-right: 0px dotted #e1e1e1;
  }

  .aps-steps {
    grid-template-columns: 1fr;
  }

  .aps-steps_arrow {
    display: none;
  }

  .aps-step_title {
    min-height: 0;
  }

  .aps-intro_actions {
    flex-direction: column;
  }

  .aps-intro_actions .aps-btn {
    width: 100%;
  }

  .aps-features {
    grid-template-columns: 1fr 1fr;
  }

  .aps-feature {
    border-right: none !important;
    padding-right: 0 !important;
  }

  .aps-title {
    font-size: 20px;
    line-height: 26px;
  }
}

@media (max-width: 460px) {
  .aps-card.aps-intro {
    margin-bottom: 40px;
  }

  .aps-features {
    grid-template-columns: 1fr;
  }

  .aps-card {
    padding: 24px 20px;
  }
}
