/*
  Cloud Data Network
  info@cdntouch.com

  Cloud Data Network delivers secure hosting, managed protection, and dependable
  content delivery for modern digital businesses. We help teams scale web
  platforms with resilient infrastructure, lower latency, and support that
  stays available when uptime matters most.

  Corporate: 01805 457771
  Sales: 01805 457772-3
  WhatsApp: 01805 454777
  Telephone: 09638 032030
*/

html {
  font-size: 14px;
  font-family: "Inter Tight", sans-serif;
}

:root {
  --bs-font-sans-serif: "Inter Tight", sans-serif;
  --bs-body-font-family: "Inter Tight", sans-serif;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background-color: #e8e8e8;
  font-family: "Inter Tight", sans-serif;
}

body > .page-body {
  flex: 1 0 auto;
}

button,
input,
select,
textarea,
.login-btn {
  font-family: inherit;
}

.page-header {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 24px;
  background-color: #39B54A;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.page-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.page-header__brand:hover,
.page-header__brand:focus {
  color: #fff;
  text-decoration: none;
}

.page-header__title {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.login-page {
  position: relative;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #e8e8e8;
}

.login-page .page-header,
.login-page .login-shell,
.login-page .site-footer {
  position: relative;
  z-index: 1;
}

.login-page .page-header,
.login-page .site-footer {
  flex-shrink: 0;
}

.login-bg {
  position: fixed;
  bottom: 44px;
  width: min(34vw, 420px);
  height: min(72vh, 560px);
  pointer-events: none;
  z-index: 0;
  background-repeat: no-repeat;
  background-size: contain;
  mix-blend-mode: screen;
  opacity: 0.85;
}

.login-bg--left {
  left: 0;
  background-image: url("/images/leftside-mask.png");
  background-position: left bottom;
}

.login-bg--right {
  right: 0;
  background-image: url("/images/rightside-mask.png");
  background-position: right bottom;
}

@media (max-width: 991px) {
  .login-bg {
    display: none;
  }
}

.login-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: 28px 24px 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.login-card__title {
  margin: 0 0 20px;
  color: #333;
  font-family: inherit;
  font-size: 1.15rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.3;
}

.fallback-card {
  text-align: center;
}

.fallback-card__icon {
  margin-bottom: 12px;
  color: #39B54A;
  font-size: 2rem;
}

.fallback-card__text {
  margin: 0 0 16px;
  color: #666;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.5;
}

.fallback-card__path {
  margin: 0 0 20px;
  color: #888;
  font-size: 0.8rem;
  word-break: break-all;
}

.login-form {
  display: flex;
  flex-direction: column;
}

.login-field {
  margin-bottom: 8px;
}

.login-field label {
  display: block;
  margin-bottom: 8px;
  color: #37474f;
  font-size: 0.95rem;
  font-weight: 500;
}

.login-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-size: 0.95rem;
}

.login-input::placeholder {
  color: #b0b0b0;
}

.login-input:focus {
  outline: none;
  border-color: #39B54A;
  box-shadow: 0 0 0 0.15rem rgba(57, 181, 74, 0.15);
}

.login-input.login-input--invalid,
.login-input.input-validation-error {
  border-color: #39B54A;
}

.login-input.login-input--invalid:focus,
.login-input.input-validation-error:focus {
  outline: none;
  border-color: #39B54A;
  box-shadow: 0 0 0 0.15rem rgba(57, 181, 74, 0.18);
}

.login-password {
  position: relative;
}

.login-password .login-input {
  padding-right: 44px;
}

.login-password-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #9e9e9e;
  cursor: pointer;
}

.login-password-toggle i {
  font-size: 1rem;
}

.login-field:has(+ .login-options) {
  margin-bottom: 0;
}

.login-error:empty,
.field-validation-valid {
  display: none;
}

.login-error {
  display: block;
  margin-top: 6px;
  color: #39B54A;
  font-size: 0.8rem;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0;
}

.login-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #37474f;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.login-remember input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.login-remember__box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1.5px solid #d0d0d0;
  border-radius: 4px;
  background: #fff;
  color: transparent;
  flex-shrink: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.login-remember__box i {
  font-size: 0.65rem;
}

.login-remember input:checked + .login-remember__box {
  border-color: #39B54A;
  background: #39B54A;
  color: #fff;
}

.login-remember input:focus-visible + .login-remember__box {
  box-shadow: 0 0 0 0.15rem rgba(57, 181, 74, 0.18);
}

.login-options a {
  color: #39B54A;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.login-options a:hover {
  color: #2D963C;
  text-decoration: underline;
}

.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.login-btn--primary {
  border: 0;
  background-color: #39B54A;
  color: #fff;
}

.login-btn--primary:hover:not(:disabled) {
  background-color: #2D963C;
  color: #fff;
}

.login-btn--primary:disabled {
  background-color: #cfcfcf;
  color: #fff;
  cursor: not-allowed;
}

.login-btn--outline {
  margin-top: 12px;
  border: 1px solid #39B54A;
  background: #fff;
  color: #39B54A;
}

.login-btn--outline:hover {
  background: #eef9f0;
  color: #39B54A;
}

.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 6px 16px;
  border-top: 1px solid #e5e5e5;
  background: #fff;
  color: #6c757d;
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.3;
  white-space: normal;
}

.site-footer__inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.site-footer__link {
  color: #6c757d;
  text-decoration: none;
}

.site-footer__link:hover,
.site-footer__link:focus {
  color: #39B54A;
  text-decoration: underline;
}

.powered-by {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6c757d;
  font-size: inherit;
  user-select: none;
  -webkit-user-select: none;
}

.powered-by__logo {
  display: inline-block;
  width: 48px;
  height: 18px;
  background-image: url("https://pub-96806a69b0db4db191cba8895d03be0f.r2.dev/cdn-footer-logo.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.toast-container {
  position: fixed;
  top: 72px;
  right: 16px;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.app-toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 260px;
  max-width: 360px;
  padding: 12px 16px;
  border-radius: 6px;
  background: #E53935;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  font-family: "Inter Tight", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  pointer-events: auto;
  animation: toast-in 0.22s ease;
}

.app-toast i {
  margin-top: 2px;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.app-toast--error {
  background: #E53935;
  color: #fff;
}

.app-toast--success {
  background: #39B54A;
  color: #fff;
}

.app-toast--alert,
.app-toast--warning {
  background: #F5C400;
  color: #333;
}

.app-toast--hide {
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.policy-card {
  max-width: 760px;
  margin: 0 auto 24px;
  padding: 24px;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
  background: #fff;
  color: #444;
  font-size: 0.92rem;
  line-height: 1.55;
}

.policy-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.policy-card__title {
  margin: 0;
  color: #222;
  font-size: 1.35rem;
  font-weight: 700;
}

.policy-card__meta {
  margin: 4px 0 0;
  color: #777;
  font-size: 0.85rem;
}

.policy-card__back {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #fff;
  color: #555;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

.policy-card__back:hover {
  color: #39B54A;
  border-color: #39B54A;
}

.policy-card h2 {
  margin: 20px 0 8px;
  color: #222;
  font-size: 1rem;
  font-weight: 700;
}

.policy-card p,
.policy-card ul {
  margin: 0 0 10px;
}

.policy-card ul {
  padding-left: 18px;
}

.policy-card li + li {
  margin-top: 4px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}