* {
  box-sizing: border-box;
}

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

body {
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: #f5f7fb;
  color: #172033;
}


/* =========================
   MAIN LAYOUT
========================= */

.auth-container {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 44% 56%;
}


/* =========================
   LEFT BRAND SECTION
========================= */

.brand-section {
  min-height: 100vh;
  padding: 55px 7vw;
  display: flex;
  flex-direction: column;

  background: linear-gradient(
    145deg,
    #10244b,
    #1d4ed8
  );

  color: #ffffff;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;

  font-size: 22px;
  font-weight: 700;
}

.logo-box {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border-radius: 12px;

  background: #ffffff;
  color: #1d4ed8;

  font-weight: 900;
  font-size: 22px;
}

.brand-logo strong,
.mobile-brand strong {
  color: #9cc2ff;
}


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

.brand-content {
  margin: auto 0;
}

.brand-content h1 {
  margin: 0 0 25px;

  font-size: clamp(
    38px,
    4vw,
    60px
  );

  line-height: 1.08;
  letter-spacing: -1.5px;
}

.brand-content p {
  max-width: 560px;

  margin: 0;

  font-size: 18px;
  line-height: 1.7;

  color: #dbe7ff;
}

.features {
  margin-top: 30px;

  display: grid;
  gap: 14px;

  color: #edf4ff;

  font-size: 15px;
}


/* =========================
   FOOTER
========================= */

.brand-section footer {
  font-size: 13px;
  color: #c8d7f5;
}


/* =========================
   RIGHT AUTH SECTION
========================= */

.auth-section {
  min-height: 100vh;

  display: grid;
  place-items: center;

  padding: 35px;
}


/* =========================
   AUTH CARD
========================= */

.auth-card {
  width: min(500px, 100%);

  padding: 35px;

  background: #ffffff;

  border: 1px solid #e5e9f2;

  border-radius: 22px;

  box-shadow:
    0 18px 50px rgba(
      16,
      36,
      75,
      0.08
    );
}


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

.mobile-brand {
  display: none;

  align-items: center;
  gap: 10px;

  margin-bottom: 25px;

  font-size: 21px;
  font-weight: 700;
}


/* =========================
   AUTH TABS
========================= */

.auth-tabs {
  display: flex;

  background: #f2f5fa;

  border-radius: 12px;

  padding: 4px;

  margin-bottom: 30px;
}

.auth-tab {
  flex: 1;

  border: 0;

  background: transparent;

  padding: 12px;

  border-radius: 9px;

  font-size: 14px;
  font-weight: 700;

  color: #667085;

  cursor: pointer;

  transition: 0.2s;
}

.auth-tab:hover {
  color: #1754c8;
}

.auth-tab.active {
  background: #ffffff;

  color: #1754c8;

  box-shadow:
    0 2px 8px rgba(
      0,
      0,
      0,
      0.06
    );
}


/* =========================
   HEADINGS
========================= */

.auth-card h2 {
  margin: 0 0 7px;

  font-size: 30px;

  color: #172033;
}

.subtitle {
  margin: 0 0 25px;

  color: #667085;

  font-size: 14px;
}


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

form {
  display: grid;
  gap: 17px;
}

.form-group {
  display: grid;
  gap: 7px;
}

.form-group label {
  font-size: 14px;

  font-weight: 700;

  color: #344054;
}

.form-group input,
.form-group select {
  width: 100%;

  padding: 13px 14px;

  border: 1px solid #d8dee9;

  border-radius: 10px;

  background: #ffffff;

  color: #172033;

  font-family: inherit;

  font-size: 14px;

  outline: none;

  transition: 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #3676e8;

  box-shadow:
    0 0 0 3px
    rgba(
      54,
      118,
      232,
      0.10
    );
}


/* =========================
   PRIMARY BUTTON
========================= */

.primary-button {
  width: 100%;

  border: 0;

  border-radius: 10px;

  background: #1d5bd7;

  color: #ffffff;

  padding: 14px;

  font-size: 15px;

  font-weight: 800;

  cursor: pointer;

  transition: 0.2s;

  margin-top: 3px;
}

.primary-button:hover {
  background: #174bb5;
}

.primary-button:active {
  transform: scale(0.99);
}


/* =========================
   MESSAGE
========================= */

.message {
  min-height: 22px;

  margin-top: 16px;

  font-size: 14px;

  font-weight: 600;
}

.message.ok {
  color: #087443;
}

.message.err {
  color: #c62828;
}


/* =========================
   SECURITY NOTE
========================= */

.security-note {
  margin: 20px 0 0;

  text-align: center;

  color: #98a2b3;

  font-size: 12px;

  line-height: 1.5;
}


/* =========================
   HIDDEN
========================= */

.hidden {
  display: none !important;
}


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

@media (max-width: 1000px) {

  .auth-container {
    grid-template-columns: 40% 60%;
  }

  .brand-section {
    padding: 40px;
  }

  .brand-content h1 {
    font-size: 40px;
  }

  .auth-section {
    padding: 25px;
  }
}


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

@media (max-width: 850px) {

  .auth-container {
    display: block;
  }

  .brand-section {
    display: none;
  }

  .auth-section {
    min-height: 100vh;

    padding: 18px;

    display: grid;
    place-items: center;
  }

  .auth-card {
    padding: 25px 20px;

    border-radius: 16px;
  }

  .mobile-brand {
    display: flex;
  }

  .auth-card h2 {
    font-size: 26px;
  }
}


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

@media (max-width: 420px) {

  .auth-section {
    padding: 10px;
  }

  .auth-card {
    padding: 20px 16px;

    border-radius: 14px;
  }

  .auth-tabs {
    margin-bottom: 24px;
  }

  .auth-tab {
    font-size: 13px;
    padding: 11px 7px;
  }

  .form-group input,
  .form-group select {
    padding: 12px;
  }
}
