/* Text2World modern login/logout skin for legacy portal pages. */
:root {
  --t2w-orange: #f5961f;
  --t2w-orange-dark: #df7d0c;
  --t2w-blue: #1f40ae;
  --t2w-ink: #111827;
  --t2w-muted: #6b7280;
  --t2w-border: rgba(17, 24, 39, 0.1);
}

html,
body.login_page {
  min-height: 100%;
}

body.login_page {
  width: 100%;
  overflow-x: hidden;
  background: #ffffff;
  font-family: "Open Sans", Arial, sans-serif;
}

body.login_page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--t2w-glow-x, 22%) var(--t2w-glow-y, 36%), rgba(245, 150, 31, 0.22), transparent 18%),
    radial-gradient(circle at 78% 42%, rgba(31, 64, 174, 0.12), transparent 30%),
    url("/assets/img/t2w-world-map-bg.svg") center / min(1180px, 96vw) auto no-repeat,
    linear-gradient(90deg, rgba(255, 247, 237, 0.9), rgba(239, 246, 255, 0.72));
  animation: t2wGlobalGlow 8s ease-in-out infinite;
}

body.login_page::after {
  content: "www.text2world.com  |  Powered by Text2World";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 12px 18px;
  border-top: 3px solid var(--t2w-orange);
  color: #111111;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 -10px 30px rgba(17, 24, 39, 0.08);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
}

.login-wrapper {
  min-height: 100vh;
  height: auto;
  display: grid !important;
  grid-template-columns: 500px 390px;
  align-items: start !important;
  align-content: center !important;
  justify-content: center;
  gap: 48px;
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 102px 52px 82px;
  overflow-x: hidden;
  position: relative;
}

.login-wrapper::after {
  content: none;
}

.login-wrapper::before {
  content: "";
  position: relative;
  grid-column: 1;
  grid-row: 1;
  width: 500px;
  height: 430px !important;
  min-height: 430px !important;
  box-sizing: border-box;
  padding: 0;
  border-radius: 36px;
  color: var(--t2w-ink);
  background:
    url("/assets/img/t2w-login-communication.svg") center / 88% auto no-repeat,
    linear-gradient(135deg, rgba(255, 247, 237, 0.95), rgba(239, 246, 255, 0.95));
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.1);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.85;
  white-space: pre-line;
  z-index: 0;
  align-self: flex-start;
}

#login.loginpage {
  float: none !important;
  width: min(100%, 390px);
  grid-column: 2;
  grid-row: 1;
  max-width: 390px;
  margin: 0 !important;
  margin-left: 0 !important;
  transform: none !important;
  height: 430px !important;
  min-height: 430px !important;
  padding: 30px 28px 24px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  color: var(--t2w-ink);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 80px rgba(17, 24, 39, 0.16);
  backdrop-filter: blur(18px);
  position: relative;
  z-index: 1;
  align-self: flex-start;
}

.loginpage #nav a.pull-left {
  display: none !important;
}

.t2w-login-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 5;
  width: min(calc(100% - 32px), 1040px);
  overflow: hidden;
  padding: 14px 28px 12px;
  color: #111111;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 3px solid var(--t2w-orange);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
  text-align: center;
  transform: translateX(-50%);
}

.t2w-header-slogan {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.t2w-brand-orange {
  color: var(--t2w-orange);
}

.t2w-brand-black {
  color: #111111;
}

.t2w-header-window {
  overflow: hidden;
  white-space: nowrap;
}

.t2w-header-track {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  min-width: max-content;
  animation: t2wServiceMarquee 24s linear infinite;
}

.t2w-service-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #111111;
  font-size: 14px;
  font-weight: 800;
}

.t2w-service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--t2w-orange), #ff7a00);
  box-shadow: 0 6px 14px rgba(245, 150, 31, 0.24);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.t2w-service-icon svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.t2w-icon-whatsapp {
  background: linear-gradient(135deg, #21c063, #128c7e);
}

.t2w-icon-email {
  background: linear-gradient(135deg, var(--t2w-orange), #ff7a00);
}

.t2w-icon-sms {
  background: linear-gradient(135deg, var(--t2w-blue), #4f6ef7);
}

.t2w-icon-otp {
  background: linear-gradient(135deg, #111111, #3f3f46);
}

.t2w-icon-api {
  background: linear-gradient(135deg, #7c3aed, #2563eb);
}

#login.loginpage::before {
  content: "";
  display: block;
  width: 230px;
  height: 74px;
  margin: 0 auto 16px;
  background: url("/assets/img/logo/logo_sqaure.png") center / contain no-repeat;
}

#login.loginpage::after {
  content: "Secure digital communication platform";
  display: block;
  margin-top: 18px;
  color: var(--t2w-muted);
  font-size: 12px;
  text-align: center;
}

.loginpage h1 {
  display: none;
}

.loginpage form {
  margin: 0;
  padding-top: 10px;
  overflow: visible;
}

.loginpage form::before {
  content: none;
}

.loginpage form p {
  margin-bottom: 16px;
}

.loginpage,
.loginpage form,
.loginpage form label,
.loginpage .message {
  color: var(--t2w-ink);
}

.loginpage label {
  color: var(--t2w-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.loginpage form .input,
.loginpage input[type="text"],
.loginpage input[type="password"] {
  width: 100%;
  min-height: 48px;
  margin: 7px 0 0;
  padding: 10px 14px;
  border: 1px solid var(--t2w-border) !important;
  border-radius: 14px;
  color: var(--t2w-ink);
  background: #fff;
  box-shadow: none;
  font-size: 15px;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.loginpage form .input:hover,
.loginpage form .input:focus,
.loginpage input[type="text"]:hover,
.loginpage input[type="text"]:focus,
.loginpage input[type="password"]:hover,
.loginpage input[type="password"]:focus {
  border-color: rgba(245, 150, 31, 0.65) !important;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(245, 150, 31, 0.14);
  outline: 0;
}

.loginpage form .forgetmenot {
  margin: 4px 0 12px !important;
}

.loginpage .icheck-label,
.loginpage .form-label {
  color: var(--t2w-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
}

.loginpage form p.submit {
  margin-top: 18px;
}

.loginpage .btn.btn-orange,
.loginpage input[type="submit"].btn-orange,
.t2w-logout-card .t2w-logout-link {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--t2w-orange), #ff7a00);
  box-shadow: 0 14px 28px rgba(245, 150, 31, 0.28);
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.loginpage .btn.btn-orange:hover,
.loginpage .btn.btn-orange:focus,
.loginpage input[type="submit"].btn-orange:hover,
.loginpage input[type="submit"].btn-orange:focus,
.t2w-logout-card .t2w-logout-link:hover,
.t2w-logout-card .t2w-logout-link:focus {
  color: #fff;
  background: linear-gradient(135deg, var(--t2w-orange-dark), #ff7a00);
  box-shadow: 0 18px 34px rgba(245, 150, 31, 0.34);
  transform: translateY(-1px);
}

.loginpage #nav {
  margin-top: 16px;
}

.loginpage #nav a,
.loginpage a {
  color: var(--t2w-blue);
  font-size: 13px;
  font-weight: 700;
}

.loginpage #nav a:hover,
.loginpage a:hover,
.loginpage #nav a:active,
.loginpage a:active {
  color: var(--t2w-orange-dark);
}

.loginpage #notification .alert,
.loginpage #notificationOtp .alert {
  border: 0;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
}

.loginpage .has-error {
  display: block;
  margin-top: 6px;
  color: #dc2626;
  font-size: 12px;
  text-transform: none;
}

.modal-content {
  border: 0;
  border-radius: 20px;
  overflow: hidden;
}

.modal-header {
  border-bottom-color: rgba(245, 150, 31, 0.18);
}

.modal-title {
  font-weight: 800;
}

.t2w-forgot-help {
  margin: 8px 0 0;
  color: var(--t2w-muted);
  font-size: 12px;
  line-height: 1.5;
}

.t2w-forgot-status {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
}

.t2w-forgot-status.is-error {
  color: #dc2626;
}

.t2w-forgot-status.is-success {
  color: #198754;
}

body.t2w-logout-page {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 82px 24px 72px;
  color: var(--t2w-ink);
  background:
    radial-gradient(circle at var(--t2w-glow-x, 24%) var(--t2w-glow-y, 34%), rgba(245, 150, 31, 0.22), transparent 18%),
    radial-gradient(circle at 85% 16%, rgba(31, 64, 174, 0.16), transparent 34%),
    url("/assets/img/t2w-world-map-bg.svg") center / min(1120px, 96vw) auto no-repeat,
    linear-gradient(135deg, #fff7ed, #eff6ff);
  font-family: "Open Sans", Arial, sans-serif;
  animation: t2wGlobalGlow 8s ease-in-out infinite;
}

body.t2w-logout-page::after {
  content: "www.text2world.com  |  Powered by Text2World";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 18px;
  border-top: 3px solid var(--t2w-orange);
  color: #111111;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 -10px 30px rgba(17, 24, 39, 0.08);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
}

.t2w-logout-card {
  width: min(100%, 440px);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 80px rgba(17, 24, 39, 0.16);
  text-align: center;
  position: relative;
  z-index: 1;
}

.t2w-logout-card::before {
  content: "";
  display: block;
  width: 220px;
  height: 70px;
  margin: 0 auto 14px;
  background: url("/assets/img/logo/logo_sqaure.png") center / contain no-repeat;
}

.t2w-logout-card::after {
  content: "Your Global Communication Partner  •  Text2World  •  Connect. Engage. Grow.";
  position: fixed;
  top: 0;
  left: 0;
  z-index: 4;
  right: 0;
  padding: 12px 40px;
  color: #111111;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 237, 0.96));
  border-bottom: 3px solid var(--t2w-orange);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
}

.t2w-logout-card h1 {
  margin: 0 0 8px;
  color: var(--t2w-ink);
  font-size: 24px;
  font-weight: 800;
}

.t2w-logout-card p {
  margin: 0 0 18px;
  color: var(--t2w-muted);
  font-size: 14px;
  line-height: 1.6;
}

.t2w-logout-card .t2w-logout-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 12px 22px;
  text-decoration: none;
}

@media (max-width: 575px) {
  body.login_page {
    min-height: 100vh;
    overflow-x: hidden;
  }

  body.login_page::after {
    position: static;
    display: block;
    padding: 10px 12px;
    color: #111111;
    background: rgba(255, 255, 255, 0.96);
    font-size: 12px;
  }

  .t2w-login-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 8px 8px 6px;
    box-sizing: border-box;
    transform: none;
  }

  .t2w-header-slogan {
    margin-bottom: 5px;
    font-size: 11px;
    line-height: 1.25;
    letter-spacing: 0.05em;
  }

  .t2w-header-track {
    gap: 14px;
    animation-duration: 16s;
  }

  .t2w-service-item {
    gap: 6px;
    font-size: 11px;
  }

  .t2w-service-icon {
    width: 26px;
    min-width: 26px;
    height: 26px;
  }

  .t2w-service-icon svg {
    width: 16px;
    height: 16px;
  }

  .login-wrapper {
    min-height: auto;
    padding: 92px 12px 16px;
    width: 100%;
    box-sizing: border-box;
  }

  #login.loginpage,
  .t2w-logout-card {
    width: 100%;
    max-width: 340px;
    height: auto !important;
    min-height: 0 !important;
    padding: 18px 18px 18px;
    border-radius: 22px;
  }

  #login.loginpage::before,
  .t2w-logout-card::before {
    width: 168px;
    height: 54px;
    margin-bottom: 10px;
  }

  .loginpage form {
    padding-top: 4px;
  }

  .loginpage form p {
    margin-bottom: 12px;
  }

  .loginpage form .input,
  .loginpage input[type="text"],
  .loginpage input[type="password"] {
    min-height: 42px;
    padding: 8px 12px;
    font-size: 14px;
  }

  .loginpage form::before,
  .t2w-logout-card h1 {
    font-size: 21px;
  }

  .loginpage #nav {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
  }

  #login.loginpage::after {
    margin-top: 12px;
    font-size: 11px;
  }
}

@media (max-width: 1199px) {
  .login-wrapper {
    width: min(100%, 980px);
    grid-template-columns: 470px 390px;
    padding-left: 34px;
    padding-right: 34px;
    gap: 42px;
  }

  .login-wrapper::before {
    flex-basis: 470px;
    width: min(48vw, 470px);
    height: 390px;
    font-size: 13px;
  }

  #login.loginpage {
    min-height: 390px;
  }

}

@media (max-width: 991px) {
  .login-wrapper {
    display: flex !important;
    justify-content: center;
    align-items: center !important;
    padding-left: 18px;
    padding-right: 18px;
  }

  .login-wrapper::before {
    display: none;
  }
}

@keyframes t2wHeaderMarquee {
  0% {
    transform: translateX(100vw);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes t2wServiceMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes t2wGlobalGlow {
  0%, 100% {
    --t2w-glow-x: 18%;
    --t2w-glow-y: 34%;
  }
  35% {
    --t2w-glow-x: 50%;
    --t2w-glow-y: 42%;
  }
  70% {
    --t2w-glow-x: 82%;
    --t2w-glow-y: 34%;
  }
}
