
/* ==========================================
   ESKOOLI — PREMIUM RESPONSIVE LOGIN
========================================== */

:root {
  --dark: #052b20;
  --forest: #073d2c;
  --green: #119b65;
  --mint: #ddf7e9;
  --text: #142b23;
  --muted: #75857b;
  --border: #e1ebe4;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  font: 12px/1.7 "DM Sans", sans-serif;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  opacity: .65;
  cursor: wait;
}

[hidden] {
  display: none !important;
}

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

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 44%) minmax(0, 56%);
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
}

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

.auth-brand {
  position: relative;
  overflow: hidden;
  min-width: 0;

  background:
    radial-gradient(
      circle at 90% 15%,
      rgba(54,197,139,.18),
      transparent 40%
    ),
    linear-gradient(
      150deg,
      #052b20 0%,
      #064530 55%,
      #087a50 100%
    );

  padding: 32px clamp(24px, 3.5vw, 65px);

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 35px;

  color: #fff;
}

.auth-brand::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  right: -260px;
  top: -180px;
  pointer-events: none;
}

.auth-brand::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 50%;
  left: -180px;
  bottom: 20%;
  pointer-events: none;
}

/* LOGO */

.logo {
  position: relative;
  z-index: 2;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  width: max-content;

  font: 800 23px "Manrope", sans-serif;
  letter-spacing: -1.2px;
}

.logo-symbol {
  display: grid;
  place-items: center;

  width: 37px;
  height: 37px;

  border-radius: 11px;
  background: #16a36b;

  font-size: 16px;
}

/* BRAND TEXT */

.brand-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
}

.brand-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: #a2f3c6;

  font-size: 10px;
  letter-spacing: 1.2px;
  font-weight: 800;
}

.brand-content h1 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(32px, 3.3vw, 50px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -2px;

  margin: 17px 0;
}

.brand-content h1 span {
  color: #7cebb0;
}

.brand-content > p {
  color: #c3dfd0;
  font-size: 12px;
  line-height: 1.9;
  max-width: 390px;
}

.brand-features {
  display: grid;
  gap: 13px;
  margin-top: 25px;
}

.brand-features > div {
  display: flex;
  align-items: center;
  gap: 12px;

  font-size: 11px;
  font-weight: 600;
}

.brand-features i {
  display: grid;
  place-items: center;

  width: 34px;
  height: 34px;
  flex-shrink: 0;

  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 10px;

  color: #8ef0b8;
}

/* ==========================================
   BRAND DASHBOARD — REPLACES IMAGE
========================================== */

.brand-dashboard {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 440px;

  padding: 18px;

  background: #fff;
  color: var(--text);

  border-radius: 17px;
  border: 1px solid rgba(255,255,255,.6);

  box-shadow:
    0 22px 55px rgba(0,0,0,.17);
}

.brand-dashboard-top,
.brand-dashboard-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-dashboard-top {
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf2ee;
}

.dashboard-symbol {
  display: grid;
  place-items: center;

  width: 32px;
  height: 32px;
  flex-shrink: 0;

  border-radius: 9px;
  background: #e6f7ed;
  color: #087a50;
}

.brand-dashboard-title strong,
.brand-dashboard-title small {
  display: block;
}

.brand-dashboard-title strong {
  font-size: 11px;
  font-weight: 800;
}

.brand-dashboard-title small {
  color: var(--muted);
  font-size: 9px;
}

.dashboard-demo {
  padding: 4px 8px;
  border-radius: 6px;

  background: #edf9f1;
  color: #087a50;

  font-size: 8px;
  font-weight: 800;
  letter-spacing: .7px;
}

/* METRICS */

.brand-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 15px;
}

.brand-dashboard-stats > div {
  min-width: 0;
  padding: 12px 10px;

  border: 1px solid #e5eee7;
  border-radius: 10px;
  background: #f8fcf9;
}

.brand-dashboard-stats span,
.brand-dashboard-stats strong {
  display: block;
}

.brand-dashboard-stats span {
  color: #75857b;
  font-size: 9px;
}

.brand-dashboard-stats strong {
  color: #073d2c;

  font: 800 clamp(15px, 1.6vw, 21px)
    "Manrope", sans-serif;

  margin-top: 5px;
}

/* CHART */

.brand-dashboard-chart {
  margin-top: 15px;
  padding: 13px;

  border: 1px solid #e5eee7;
  border-radius: 11px;
}

.dashboard-chart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-chart-heading strong {
  font-size: 10px;
}

.dashboard-chart-heading small {
  font-size: 8px;
  color: var(--muted);
}

.dashboard-chart-bars {
  height: 95px;

  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 11px;

  margin-top: 15px;
  padding: 0 5px;

  border-bottom: 1px solid #e5eee7;
}

.dashboard-chart-bars span {
  display: block;
  width: 100%;
  max-width: 30px;
  justify-self: center;

  height: var(--bar);

  border-radius: 5px 5px 0 0;

  background: linear-gradient(
    180deg,
    #119b65,
    #a4e7c2
  );

  animation: growBar 1s ease both;
  transform-origin: bottom;
}

.dashboard-chart-months {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 11px;

  margin-top: 7px;
  padding: 0 5px;

  text-align: center;
  color: var(--muted);
  font-size: 8px;
}

.brand-bottom {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;
  gap: 8px;

  color: #b4dfc7;
  font-size: 10px;
}

.brand-bottom i {
  color: #8ef0b8;
}

/* ==========================================
   LOGIN CONTENT
========================================== */

.auth-content {
  min-width: 0;

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

  padding: 45px clamp(25px, 5vw, 85px);
  background: #fff;
}

.auth-container {
  width: 100%;
  max-width: 430px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;

  margin-bottom: 55px;

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

.topbar a {
  color: #697d70;
  transition: color .2s;
}

.topbar a:hover {
  color: var(--green);
}

.topbar i {
  margin-right: 6px;
}

.topbar > span {
  color: var(--green);
  white-space: nowrap;
}

/* HEADING */

.eyebrow {
  display: inline-block;

  color: #119b65;
  font-size: 10px;
  letter-spacing: 1.3px;
  font-weight: 800;
}

.auth-heading {
  margin-bottom: 30px;
  animation: rise .6s both;
}

.auth-heading h2 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(27px, 3vw, 35px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1.3px;

  margin: 11px 0;
}

.auth-heading p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

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

.field {
  margin-bottom: 22px;
}

.field label {
  font-size: 11px;
  font-weight: 800;
}

.field > label {
  display: block;
  margin-bottom: 8px;
}

.field-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;

  margin-bottom: 8px;
}

.text-button {
  background: none;
  border: 0;

  color: var(--green);
  font-size: 10.5px;
  font-weight: 800;
}

.text-button:hover {
  text-decoration: underline;
}

.input-wrap {
  position: relative;
}

.input-wrap > i {
  position: absolute;
  left: 15px;
  top: 50%;

  transform: translateY(-50%);

  color: #8b9f92;
  font-size: 13px;

  pointer-events: none;
}

.input-wrap input {
  display: block;

  width: 100%;
  height: 49px;

  padding: 0 45px 0 43px;

  border: 1px solid var(--border);
  border-radius: 11px;

  outline: 0;
  background: #fbfdfb;

  color: var(--text);
  font-size: 12px;

  transition:
    border-color .25s,
    box-shadow .25s,
    background .25s;
}

.input-wrap input:focus {
  background: white;
  border-color: var(--green);
  box-shadow: 0 0 0 4px #119b6512;
}

.input-wrap input::placeholder {
  color: #9aaba0;
}

.eye-button {
  position: absolute;
  right: 13px;
  top: 50%;

  transform: translateY(-50%);

  display: grid;
  place-items: center;

  width: 27px;
  height: 27px;

  background: none;
  border: 0;

  color: #81958a;
}

/* SUBMIT */

.submit-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;

  width: 100%;
  min-height: 49px;

  margin-top: 27px;

  border: 0;
  border-radius: 11px;

  background: #087a50;
  color: white;

  font-weight: 800;
  font-size: 12px;

  transition:
    background .25s,
    transform .25s,
    box-shadow .25s;
}

.submit-button:hover:not(:disabled) {
  background: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px #087a5029;
}

/* REGISTER */

.auth-separator {
  display: flex;
  align-items: center;
  gap: 15px;

  margin: 28px 0;

  color: #a2b1a6;
  font-size: 10px;
}

.auth-separator::before,
.auth-separator::after {
  content: "";
  height: 1px;
  background: var(--border);
  flex: 1;
}

.register-prompt {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.register-prompt a {
  color: #087a50;
  font-weight: 800;
  margin-left: 4px;
}

/* SECURITY */

.security-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  margin-top: 35px;
  padding: 14px;

  border: 1px solid var(--border);
  border-radius: 11px;

  background: #f6fbf8;

  color: #708277;
  font-size: 10.5px;
}

.security-note i {
  color: var(--green);
  margin-top: 3px;
}

.copyright {
  text-align: center;
  margin-top: 30px;

  color: #9cab9f;
  font-size: 10px;
}

/* MESSAGES */

.message {
  padding: 13px 15px;
  border-radius: 10px;
  margin-bottom: 22px;
  font-size: 11px;
}

.message.error {
  background: #fff0f0;
  color: #a02b2b;
  border: 1px solid #f4caca;
}

.message.success {
  background: #e8f8ef;
  color: #087344;
  border: 1px solid #bce6ca;
}

.message.info {
  background: #eff7ff;
  color: #315e80;
  border: 1px solid #d5e7f6;
}

/* ==========================================
   ANIMATIONS
========================================== */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes growBar {
  from {
    transform: scaleY(0);
  }

  to {
    transform: scaleY(1);
  }
}

/* ==========================================
   SMALL DESKTOPS / SURFACE PRO PORTRAIT
========================================== */

@media (max-width: 900px) {

  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    padding: 24px 36px 28px;
    gap: 20px;
  }

  .brand-content {
    max-width: 100%;
  }

  .brand-content h1 {
    font-size: 31px;
    margin: 12px 0;
  }

  .brand-content > p {
    max-width: 620px;
  }

  .brand-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 18px;
  }

  .brand-dashboard {
    display: none;
  }

  .brand-bottom {
    display: none;
  }

  .auth-content {
    align-items: flex-start;
    padding: 45px 24px 65px;
  }

  .auth-container {
    max-width: 470px;
  }

  .topbar {
    margin-bottom: 45px;
  }
}

/* ==========================================
   TABLETS
========================================== */

@media (max-width: 700px) {

  .auth-brand {
    padding: 22px 24px;
    gap: 18px;
  }

  .logo {
    font-size: 21px;
  }

  .brand-content h1 {
    font-size: 27px;
    letter-spacing: -1px;
  }

  .brand-content > p {
    font-size: 11px;
  }

  .brand-features {
    gap: 10px 16px;
  }

  .brand-features > div {
    font-size: 10px;
  }

  .brand-features i {
    width: 29px;
    height: 29px;
  }

  .auth-content {
    padding: 35px 22px 55px;
  }

  .topbar {
    margin-bottom: 38px;
  }
}

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

@media (max-width: 480px) {

  .auth-brand {
    padding: 19px 20px 21px;
    gap: 15px;
  }

  .logo {
    font-size: 20px;
  }

  .logo-symbol {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .brand-eyebrow {
    font-size: 8px;
    letter-spacing: .7px;
  }

  .brand-content h1 {
    font-size: 25px;
    margin: 9px 0;
  }

  .brand-content > p {
    font-size: 10.5px;
    line-height: 1.7;
  }

  .brand-features {
    display: none;
  }

  .auth-content {
    padding: 28px 20px 45px;
  }

  .topbar {
    margin-bottom: 35px;
    font-size: 10px;
  }

  .auth-heading {
    margin-bottom: 26px;
  }

  .auth-heading h2 {
    font-size: 27px;
  }

  .auth-heading p {
    font-size: 11.5px;
  }

  .field {
    margin-bottom: 19px;
  }

  .input-wrap input {
    font-size: 16px;
  }

  .security-note {
    margin-top: 29px;
  }

  .copyright {
    margin-top: 25px;
  }
}

/* ==========================================
   SMALL PHONES
========================================== */

@media (max-width: 360px) {

  .auth-brand {
    padding-inline: 16px;
  }

  .auth-content {
    padding-inline: 16px;
  }

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

  .topbar {
    gap: 8px;
    font-size: 9px;
  }

  .auth-heading h2 {
    font-size: 25px;
  }
}

/* ==========================================
   SHORT DESKTOP SCREENS
========================================== */

@media (min-width: 1101px) and (max-height: 800px) {

  .auth-brand {
    gap: 18px;
    padding-top: 23px;
    padding-bottom: 23px;
  }

  .brand-content h1 {
    font-size: 35px;
    margin: 12px 0;
  }

  .brand-features {
    gap: 9px;
    margin-top: 17px;
  }

  .brand-dashboard {
    padding: 13px;
  }

  .dashboard-chart-bars {
    height: 65px;
  }

  .auth-content {
    padding-top: 25px;
    padding-bottom: 25px;
  }

  .topbar {
    margin-bottom: 30px;
  }

  .auth-heading {
    margin-bottom: 20px;
  }

  .security-note {
    margin-top: 22px;
  }
}

/* ==========================================
   ACCESSIBILITY
========================================== */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

:focus-visible {
  outline: 3px solid #36c58b;
  outline-offset: 3px;
}


/* ==========================================
   ESKOOLI — DESKTOP LAYOUT CORRECTION
========================================== */

@media (min-width: 901px) {

  .auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 44%) minmax(0, 56%);
    min-height: 100dvh;
  }

  .auth-brand {
    min-width: 0;
    min-height: 100dvh;
    padding: 35px clamp(28px, 4vw, 70px);
    justify-content: space-between;
  }

  .brand-content {
    max-width: 440px;
  }

  .brand-content h1 {
    font-size: clamp(34px, 3.5vw, 51px);
  }

  .brand-features {
    display: grid;
    gap: 13px;
  }

  .brand-dashboard {
    display: block;
  }

  .brand-bottom {
    display: flex;
  }

  .auth-content {
    min-width: 0;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px clamp(25px, 5vw, 85px);
  }

  .auth-container {
    width: 100%;
    max-width: 430px;
  }
}

/* TABLET / SURFACE PRO PORTRAIT */

@media (min-width: 701px) and (max-width: 900px) {

  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    min-height: auto;
  }

  .auth-content {
    min-height: auto;
  }
}


/* ESKOOLI — COMPACT MOBILE LOGIN */

@media (max-width: 480px) {

  .auth-brand {
    padding: 18px 20px 20px;
    gap: 12px;
  }

  .brand-content h1 {
    font-size: 23px;
    line-height: 1.2;
    margin: 8px 0;
  }

  .brand-content > p {
    font-size: 10.5px;
    line-height: 1.6;
  }

  .brand-features,
  .brand-dashboard,
  .brand-bottom {
    display: none;
  }

  .auth-content {
    padding: 25px 20px 40px;
  }

  .topbar {
    margin-bottom: 28px;
  }

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

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

  .field {
    margin-bottom: 18px;
  }
}