:root {
  --dfmax-primary: #009cc5;
  --dfmax-primary-dark: #006b87;
  --dfmax-accent: #f47b3a;
  --dfmax-text: #292929;
  --dfmax-text-light: #667085;
  --dfmax-white: #ffffff;
  --dfmax-light-blue: #f0fafd;
  --dfmax-border: #e5e7eb;
  --dfmax-footer: #063b4a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
}

body {
  font-family: "Inter", sans-serif;
  background: #f5f9fb;
  color: var(--dfmax-text);
  /* overflow: hidden; */
}

/* =========================================
           LOGIN WRAPPER
        ========================================= */

.dfmax-login-page {
  width: 100%;
  height: 100vh;
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(0, 156, 197, 0.08),
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 90%,
      rgba(244, 123, 58, 0.06),
      transparent 30%
    ),
    #f6fafc;

  overflow: hidden;
}

/* =========================================
   MAIN CONTAINER
========================================= */

.dfmax-login-container {
  width: 100%;
  max-width: 1120px;

  /*
       Important:
       Keep container inside viewport.
    */
  height: calc(100vh - 40px);

  /*
       Prevent it from becoming too tall
       on larger screens.
    */
  max-height: 760px;

  background: #ffffff;

  border-radius: 24px;

  overflow: hidden;

  display: grid;

  grid-template-columns: 1.05fr 0.95fr;

  box-shadow:
    0 25px 70px rgba(6, 59, 74, 0.12),
    0 5px 20px rgba(0, 0, 0, 0.04);
}

/* =========================================
   LEFT PANEL
========================================= */

.dfmax-login-info {
  position: relative;

  overflow: hidden;

  padding: 40px 50px;

  color: #ffffff;

  background: linear-gradient(145deg, #006b87 0%, #009cc5 55%, #00a8ce 100%);

  display: flex;

  flex-direction: column;

  justify-content: space-between;
}

/* Decorative circles */

.dfmax-login-info::before {
  content: "";

  position: absolute;

  width: 360px;
  height: 360px;

  border: 1px solid rgba(255, 255, 255, 0.15);

  border-radius: 50%;

  top: -170px;
  right: -130px;
}

.dfmax-login-info::after {
  content: "";

  position: absolute;

  width: 260px;
  height: 260px;

  border: 1px solid rgba(255, 255, 255, 0.12);

  border-radius: 50%;

  bottom: -130px;
  left: -100px;
}

/* =========================================
   BRAND
========================================= */

.dfmax-brand {
  position: relative;

  z-index: 2;

  display: flex;

  align-items: center;

  gap: 12px;
}

.dfmax-brand-icon {
  width: 45px;
  height: 45px;

  border-radius: 13px;

  background: rgba(255, 255, 255, 0.16);

  border: 1px solid rgba(255, 255, 255, 0.25);

  display: flex;

  align-items: center;
  justify-content: center;

  backdrop-filter: blur(8px);

  flex-shrink: 0;
}

.dfmax-brand-icon i {
  font-size: 19px;
}

.dfmax-brand-text strong {
  display: block;

  font-size: 23px;

  line-height: 1;

  font-weight: 800;

  letter-spacing: -0.5px;
}

.dfmax-brand-text span {
  display: block;

  margin-top: 5px;

  font-size: 10px;

  letter-spacing: 1.2px;

  text-transform: uppercase;

  opacity: 0.8;
}

/* =========================================
   LEFT CONTENT
========================================= */

.dfmax-login-info-content {
  position: relative;

  z-index: 2;

  max-width: 460px;
}

.dfmax-login-badge {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  padding: 7px 12px;

  border-radius: 50px;

  background: rgba(255, 255, 255, 0.13);

  border: 1px solid rgba(255, 255, 255, 0.18);

  font-size: 11px;

  font-weight: 600;

  margin-bottom: 20px;
}

.dfmax-login-badge i {
  color: #b8f1ff;
}

.dfmax-login-info-content h1 {
  margin: 0;

  color: #ffffff;

  font-size: 38px;

  line-height: 1.12;

  font-weight: 800;

  letter-spacing: -1.3px;
}

.dfmax-login-info-content h1 span {
  color: #d8f8ff;
}

.dfmax-login-info-content p {
  margin: 18px 0 0;

  color: rgba(255, 255, 255, 0.82);

  font-size: 13px;

  line-height: 1.7;

  max-width: 430px;
}

/* =========================================
   FEATURE CARDS
========================================= */

.dfmax-login-features {
  position: relative;

  z-index: 2;

  margin-top: 25px;

  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 10px;
}

.dfmax-login-feature {
  padding: 12px;

  border-radius: 12px;

  background: rgba(255, 255, 255, 0.1);

  border: 1px solid rgba(255, 255, 255, 0.13);

  backdrop-filter: blur(8px);
}

.dfmax-login-feature-icon {
  width: 30px;
  height: 30px;

  border-radius: 8px;

  background: rgba(255, 255, 255, 0.14);

  display: flex;

  align-items: center;
  justify-content: center;

  margin-bottom: 8px;
}

.dfmax-login-feature-icon i {
  font-size: 13px;
}

.dfmax-login-feature strong {
  display: block;

  font-size: 11px;

  font-weight: 700;
}

.dfmax-login-feature span {
  display: block;

  margin-top: 3px;

  font-size: 9px;

  color: rgba(255, 255, 255, 0.65);
}

.dfmax-login-footer-text {
  position: relative;

  z-index: 2;

  font-size: 9px;

  color: rgba(255, 255, 255, 0.65);
}

/* =========================================
   RIGHT LOGIN PANEL
========================================= */

.dfmax-login-form-panel {
  padding: 45px 60px;

  display: flex;

  align-items: center;

  justify-content: center;

  background: #ffffff;

  overflow: hidden;
}

.dfmax-login-form-wrapper {
  width: 100%;

  max-width: 390px;
}

.dfmax-login-form-header {
  margin-bottom: 28px;
}

.dfmax-login-form-header h2 {
  margin: 0 0 8px;

  font-size: 28px;

  line-height: 1.2;

  font-weight: 800;

  color: var(--dfmax-text);

  letter-spacing: -0.7px;
}

.dfmax-login-form-header p {
  margin: 0;

  color: var(--dfmax-text-light);

  font-size: 12px;

  line-height: 1.6;
}

/* =========================================
   FORM
========================================= */

.dfmax-form-group {
  margin-bottom: 17px;
}

.dfmax-form-label {
  display: block;

  margin-bottom: 7px;

  color: #344054;

  font-size: 11px;

  font-weight: 700;
}

.dfmax-input-wrapper {
  position: relative;
}

.dfmax-input-icon {
  position: absolute;

  left: 15px;

  top: 50%;

  transform: translateY(-50%);

  color: #98a2b3;

  font-size: 13px;

  z-index: 2;
}

.dfmax-form-input {
  width: 100%;

  height: 50px;

  padding: 0 45px;

  border: 1px solid var(--dfmax-border);

  border-radius: 11px;

  background: #ffffff;

  color: var(--dfmax-text);

  font-family: inherit;

  font-size: 12px;

  outline: none;

  transition: all 0.25s ease;

  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.02);
}

.dfmax-form-input::placeholder {
  color: #a0a7b1;
}

.dfmax-form-input:hover {
  border-color: #c5cbd3;
}

.dfmax-form-input:focus {
  border-color: var(--dfmax-primary);

  box-shadow: 0 0 0 4px rgba(0, 156, 197, 0.1);
}

/* Password toggle */

.dfmax-password-toggle {
  position: absolute;

  right: 14px;

  top: 50%;

  transform: translateY(-50%);

  border: 0;

  background: transparent;

  color: #98a2b3;

  cursor: pointer;

  padding: 4px;

  z-index: 3;
}

.dfmax-password-toggle:hover {
  color: var(--dfmax-primary);
}

/* =========================================
   LOGIN BUTTON
========================================= */

.dfmax-login-button {
  width: 100%;

  height: 50px;

  border: 0;

  border-radius: 11px;

  background: linear-gradient(
    135deg,
    var(--dfmax-primary),
    var(--dfmax-primary-dark)
  );

  color: #ffffff;

  font-family: inherit;

  font-size: 12px;

  font-weight: 700;

  cursor: pointer;

  transition: all 0.25s ease;

  box-shadow: 0 9px 22px rgba(0, 156, 197, 0.2);
}

.dfmax-login-button:hover {
  transform: translateY(-2px);

  box-shadow: 0 13px 27px rgba(0, 156, 197, 0.27);
}

.dfmax-login-button:active {
  transform: translateY(0);
}

.dfmax-login-button i {
  margin-left: 7px;
}

/* =========================================
   SECURITY BOX
========================================= */

.dfmax-login-security {
  margin-top: 18px;

  padding: 10px 12px;

  display: flex;

  align-items: center;

  gap: 10px;

  border-radius: 10px;

  background: var(--dfmax-light-blue);

  border: 1px solid rgba(0, 156, 197, 0.1);
}

.dfmax-login-security-icon {
  width: 30px;
  height: 30px;

  min-width: 30px;

  border-radius: 8px;

  background: rgba(0, 156, 197, 0.1);

  color: var(--dfmax-primary-dark);

  display: flex;

  align-items: center;
  justify-content: center;
}

.dfmax-login-security-text {
  font-size: 9px;

  color: #667085;

  line-height: 1.45;
}

.dfmax-login-security-text strong {
  display: block;

  color: #344054;

  font-size: 10px;

  margin-bottom: 1px;
}

.dfmax-login-bottom {
  text-align: center;

  margin-top: 18px;

  font-size: 9px;

  color: #98a2b3;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) {
  body {
    overflow: auto;
  }

  .dfmax-login-page {
    height: auto;
    min-height: 100vh;

    padding: 20px;

    overflow: visible;
  }

  .dfmax-login-container {
    height: auto;

    max-height: none;

    grid-template-columns: 1fr;
  }

  /*
       LOGIN FIRST ON TABLET/MOBILE
    */
  .dfmax-login-form-panel {
    order: -1;
  }

  .dfmax-login-info {
    min-height: 360px;

    padding: 40px;
  }

  .dfmax-login-info-content h1 {
    font-size: 34px;
  }

  .dfmax-login-form-panel {
    padding: 45px 40px;
  }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {
  body {
    overflow: auto;
  }

  .dfmax-login-page {
    min-height: 100vh;

    height: auto;

    padding: 0;

    display: block;

    overflow: visible;
  }

  .dfmax-login-container {
    width: 100%;

    min-height: 100vh;

    height: auto;

    max-height: none;

    border-radius: 0;

    box-shadow: none;

    display: flex;

    flex-direction: column;
  }

  /*
       LOGIN FORM FIRST
    */

  .dfmax-login-form-panel {
    order: -1;

    width: 100%;

    padding: 40px 25px 35px;

    flex: none;

    overflow: visible;
  }

  .dfmax-login-form-wrapper {
    max-width: 100%;
  }

  .dfmax-login-form-header {
    margin-bottom: 25px;
  }

  .dfmax-login-form-header h2 {
    font-size: 26px;
  }

  .dfmax-login-form-header p {
    font-size: 12px;
  }

  /*
       BRANDING AFTER LOGIN
    */

  .dfmax-login-info {
    width: 100%;

    min-height: auto;

    padding: 35px 25px 30px;

    flex: none;
  }

  .dfmax-login-info-content {
    margin-top: 40px;
  }

  .dfmax-login-info-content h1 {
    font-size: 30px;

    letter-spacing: -1px;
  }

  .dfmax-login-info-content p {
    font-size: 12px;

    line-height: 1.7;
  }

  .dfmax-login-features {
    margin-top: 25px;

    grid-template-columns: 1fr 1fr;

    gap: 8px;
  }

  .dfmax-login-feature {
    padding: 11px;
  }

  .dfmax-login-footer-text {
    margin-top: 25px;
  }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 380px) {
  .dfmax-login-form-panel {
    padding: 35px 20px 30px;
  }

  .dfmax-login-info {
    padding: 30px 20px;
  }

  .dfmax-login-info-content h1 {
    font-size: 27px;
  }

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