/* ============================================= */
/*  MM Digital - Stylesheet                      */
/*                                               */
/*  Structure:                                   */
/*    1. GLOBAL (login.html & register.html)     */
/*    2. LOGIN-ONLY (login.html)                 */
/*    3. REGISTER-ONLY (register.html)           */
/*    4. RESPONSIVE                              */
/* ============================================= */



/* ============================================= */
/* ============================================= */
/*                                               */
/*  1. GLOBAL STYLES                             */
/*  Shared by login.html & register.html         */
/*                                               */
/* ============================================= */
/* ============================================= */


/* --- Design Tokens --- */

:root {
  --color-dynamic-mint: #00A399;
  --color-competent-petrol: #004C50;
  --color-open-minded-aqua: #B2DDDF;
  --color-green-button: #19764C;

  --color-black: #092019;
  --color-med-grey: #9E9E9E;
  --color-white: #FFFFFF;

  --color-error: #DF5252;
  --color-error-bg: #F9EFF4;

  --shadow-s: 0px 2px 2px rgba(0, 0, 0, 0.06);

  --radius-card: 8px;
  --radius-button: 74px;

  --font-poppins: 'Poppins', sans-serif;
  --font-dm-sans: 'DM Sans', sans-serif;
}


/* --- Reset & Base --- */

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

body {
  font-family: var(--font-dm-sans);
  color: var(--color-black);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

input {
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

select {
  border: none;
  outline: none;
}


/* --- Accessibility --- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-dynamic-mint);
  outline-offset: 2px;
}

a:focus-visible {
  outline: 2px solid var(--color-dynamic-mint);
  outline-offset: 2px;
  border-radius: 2px;
}

button:focus-visible {
  outline: 2px solid var(--color-dynamic-mint);
  outline-offset: 2px;
}

.terms-checkbox:focus-visible {
  outline: 2px solid var(--color-dynamic-mint);
  outline-offset: 2px;
}


/* --- Hero Section --- */

.login-section {
  background-color: var(--color-competent-petrol);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -52px;
  margin-right: -52px;
  padding: 0 -15px;
  position: relative;
  overflow: hidden;
  min-height: 793px;
}

.login-section .identifier-left,
.login-section .identifier-right {
  position: absolute;
  width: 310px;
  height: auto;
  z-index: 0;
  max-width: calc((100vw - 600px) / 2);
}

.login-section .identifier-left {
  bottom: 0;
  left: 0;
}

.login-section .identifier-right {
  top: 0;
  right: 0;
}


/* --- Card --- */

.login-section .login-card {
  background-color: var(--color-white);
  width: 560px;
  padding: 60px 60px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-s);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.login-card .login-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
}


/* --- Card > Header --- */

.login-card .login-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  width: 100%;
}

.login-card .login-header .login-title {
  font-family: var(--font-poppins);
  font-weight: 700;
  font-size: 36px;
  line-height: 56px;
  color: var(--color-black);
}

.login-card .login-header .login-subtitle {
  font-family: var(--font-poppins);
  font-weight: 400;
  font-size: 14px;
  line-height: 21px;
  color: var(--color-black);
}


/* --- Card > Error Banner --- */

.login-card .error-banner {
  background-color: var(--color-error-bg);
  width: 100%;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-card .error-banner .error-banner__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.login-card .error-banner .error-banner__text {
  font-family: var(--font-poppins);
  font-weight: 400;
  font-size: 14px;
  line-height: 21px;
  color: var(--color-black);
}


/* --- Card > Form > Inputs --- */

.login-form .login-inputs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.login-form .login-inputs .input-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-med-grey);
}

.login-form .login-inputs .input-field input {
  flex: 1;
  font-family: var(--font-dm-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 30px;
  color: var(--color-black);
}

.login-form .login-inputs .input-field input::placeholder {
  color: var(--color-black);
}


/* --- Card > Form > Submit Button --- */

.login-form .login-button {
  background-color: var(--color-competent-petrol);
  width: 100%;
  height: 48px;
  border-radius: var(--radius-button);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
  transition: background-color 0.2s ease;
}

.login-form .login-button:hover {
  background-color: #003a3d;
}

.login-form .login-button span {
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 15px;
  line-height: 28px;
  color: var(--color-white);
}


/* --- Card > Bottom Link --- */

.login-card .signup-text {
  font-family: var(--font-dm-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 30px;
  color: var(--color-black);
  text-align: center;
  width: 100%;
}

.login-card .signup-text .signup-link {
  color: var(--color-competent-petrol);
  text-decoration: underline;
}


/* --- Video Section --- */

.video-section {
  background-color: var(--color-dynamic-mint);
  display: flex;
  align-items: center;
  gap: 40px;
  margin-left: -52px;
  margin-right: -52px;
  padding: 60px 96px;
  overflow: hidden;
}


/* --- Video Section > Thumbnail --- */

.video-section .video-container {
  flex: 1;
  min-width: 0;
}

.video-container .video-thumbnail {
  position: relative;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
}

.video-container .video-thumbnail > img:first-child {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.video-container .video-iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 4px;
  display: block;
}

.video-container .video-thumbnail .video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background-color: var(--color-competent-petrol);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  z-index: 2;
  transition: transform 0.2s ease;
}

.video-container .video-thumbnail .video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.05);
}


/* --- Video Section > Reasons --- */

.video-section .reasons-container {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.reasons-container .reasons-title {
  font-family: var(--font-poppins);
  font-weight: 700;
  font-size: 28px;
  line-height: 56px;
  color: var(--color-white);
}


/* --- Video Section > Reasons > Benefits List --- */

.reasons-container .benefits-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reasons-container .benefits-list .benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reasons-container .benefits-list .benefit-item .benefit-item__icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.reasons-container .benefits-list .benefit-item span {
  font-family: var(--font-poppins);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-white);
}


/* --- Video Section > Reasons > Features Row --- */

.reasons-container .features-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.reasons-container .features-row .features-row__label {
  font-family: var(--font-poppins);
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-white);
  white-space: nowrap;
}

.reasons-container .features-row .features-row__items {
  display: flex;
  align-items: center;
  gap: 14px;
}

.reasons-container .features-row .features-row__items .feature {
  font-family: var(--font-dm-sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 21px;
  color: var(--color-white);
}

.reasons-container .features-row .features-row__items .feature-separator {
  width: 1px;
  height: 21px;
  background-color: var(--color-white);
}



/* ============================================= */
/* ============================================= */
/*                                               */
/*  2. LOGIN-ONLY STYLES                         */
/*  Used only in login.html                      */
/*                                               */
/* ============================================= */
/* ============================================= */


/* --- Password Field > Eye Toggle --- */

.login-form .login-inputs .input-field .input-field__eye {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* --- Forgot Password Link --- */

.login-form .login-inputs .forgot-password {
  font-family: var(--font-dm-sans);
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  color: var(--color-dynamic-mint);
  text-align: right;
  display: block;
}



/* ============================================= */
/* ============================================= */
/*                                               */
/*  3. REGISTER-ONLY STYLES                      */
/*  Used only in register.html                   */
/*                                               */
/* ============================================= */
/* ============================================= */


/* --- Input Row (two columns side by side) --- */

.login-form .login-inputs .input-row {
  display: flex;
  gap: 16px;
  width: 100%;
}

.login-form .login-inputs .input-row .input-field {
  flex: 1;
  min-width: 0;
}


/* --- Select / Dropdown Field --- */

.login-form .login-inputs .input-field--select {
  position: relative;
}

.login-form .login-inputs .input-field--select select {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-dm-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 30px;
  color: var(--color-black);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 24px;
}

.login-form .login-inputs .input-field--select .input-field__chevron {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}


/* --- Terms & Conditions --- */

.login-form .terms-container {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
}

.login-form .terms-container .terms-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  min-width: 12px;
  border: 1px solid var(--color-med-grey);
  border-radius: 1px;
  cursor: pointer;
  margin-top: 2px;
}

.login-form .terms-container .terms-checkbox:checked {
  background-color: var(--color-dynamic-mint);
  border-color: var(--color-dynamic-mint);
}

.login-form .terms-container .terms-text {
  font-family: var(--font-dm-sans);
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: var(--color-black);
  cursor: pointer;
}

.login-form .terms-container .terms-text .terms-link {
  color: var(--color-dynamic-mint);
  text-decoration: none;
}

.login-form .terms-container .terms-text .terms-link:hover {
  text-decoration: underline;
}



/* ============================================= */
/* ============================================= */
/*                                               */
/*  4. RESPONSIVE: MOBILE (max-width: 768px)     */
/*                                               */
/* ============================================= */
/* ============================================= */

@media (max-width: 768px) {

  /* --- 4a. GLOBAL — Mobile --- */

  .login-section {
    background-color: var(--color-white);
    padding: 0;
    min-height: auto;
  }

  .login-section .identifier-left,
  .login-section .identifier-right {
    display: none;
  }

  .login-section .login-card {
    width: 100%;
    max-width: 375px;
    padding: 50px 16px;
    gap: 24px;
    border-radius: 8px;
    box-shadow: none;
  }

  .login-card .login-form {
    gap: 24px;
  }

  .login-card .login-header .login-title {
    font-size: 30px;
    line-height: 56px;
  }

  .login-card .login-header .login-subtitle {
    max-width: 232px;
    margin: 0 auto;
  }

  .video-section {
    flex-direction: column;
    padding: 50px 16px;
    gap: 40px;
    align-items: flex-start;
  }

  .video-section .video-container {
    width: 100%;
  }

  .video-section .reasons-container {
    gap: 32px;
  }

  .reasons-container .reasons-title {
    font-size: 21px;
    line-height: normal;
  }

  .reasons-container .benefits-list {
    gap: 6px;
  }

  .reasons-container .benefits-list .benefit-item {
    gap: 8px;
  }

  .reasons-container .benefits-list .benefit-item span {
    font-size: 12px;
    line-height: normal;
  }

  .reasons-container .features-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .reasons-container .features-row .features-row__label {
    font-size: 14px;
  }

  .reasons-container .features-row .features-row__items {
    width: 100%;
    justify-content: space-between;
  }

  .reasons-container .features-row .features-row__items .feature {
    font-size: 13px;
  }

  .reasons-container .features-row .features-row__items .feature-separator {
    height: 16px;
  }


  /* --- 4b. REGISTER-ONLY — Mobile --- */

  .login-form .login-inputs .input-row {
    flex-direction: column;
    gap: 12px;
  }

  .login-form .login-inputs--signup {
    gap: 12px;
  }
}
