/* ============================================
   MV Auth – Dark Theme (matches lucidglobalsltd.com)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
  --bg-page:        #060d1b;
  --bg-card:        #0d1526;
  --bg-input:       #0f1929;
  --bg-input-focus: #111e30;
  --border:         #1e2d45;
  --border-focus:   #2860c8;
  --accent:         #2860c8;
  --accent-hover:   #3470e0;
  --text-primary:   #e8edf5;
  --text-secondary: #6b7a99;
  --text-muted:     #4a5670;
  --text-link:      #4b8ef0;
  --red:            #e03030;
  --white:          #ffffff;
  --promo-bg:       #121e34;
  --promo-border:   #1e2d45;
  --success-bg:     #0c2314;
  --success-border: #1a4a2a;
  --success-text:   #4caf72;
  --error-bg:       #230c0c;
  --error-border:   #4a1a1a;
  --error-text:     #ef5350;
  --strength-1:     #e03030;
  --strength-2:     #f07030;
  --strength-3:     #e0c030;
  --strength-4:     #30c050;
}

html, body {
  height: 100%;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* ---- Page wrapper ---- */
.mv-auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--bg-page);
}

/* ---- Top Logo Bar ---- */
.mv-auth-header {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px 24px 0;
}

.mv-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
}

.mv-logo-badge {
  width: 48px;
  height: 48px;
  background: #1a1a1a;
  border: 2px solid #2a2a2a;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mv-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mv-logo-monogram {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1;
}

.mv-logo-monogram span {
  color: var(--red);
}

.mv-logo-subtitle {
  font-size: 9px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---- Promo Banner ---- */
.mv-promo-bar {
  margin-top: 28px;
  padding: 10px 28px;
  background: var(--promo-bg);
  border: 1px solid var(--promo-border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.2px;
}

/* ---- Form Container ---- */
.mv-auth-container {
  width: 100%;
  max-width: 540px;
  padding: 40px 24px 60px;
}

/* ---- Heading ---- */
.mv-auth-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.mv-auth-subheading {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.mv-auth-subheading a {
  color: var(--text-link);
  text-decoration: none;
  font-weight: 500;
}

.mv-auth-subheading a:hover {
  text-decoration: underline;
}

/* ---- Flash / Alert Boxes ---- */
.mv-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.mv-alert-success {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success-text);
}

.mv-alert-error {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error-text);
}

.mv-alert ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mv-alert ul li::before {
  content: '— ';
}

/* ---- Form ---- */
.mv-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---- Field ---- */
.mv-field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.mv-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ---- Input ---- */
.mv-input,
.mv-select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13.5px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.mv-input::placeholder {
  color: var(--text-muted);
  font-size: 13px;
}

.mv-input:focus,
.mv-select:focus {
  border-color: var(--border-focus);
  background: var(--bg-input-focus);
  box-shadow: 0 0 0 3px rgba(40, 96, 200, 0.15);
}

/* Autofill override */
.mv-input:-webkit-autofill,
.mv-input:-webkit-autofill:hover,
.mv-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px var(--bg-input) inset;
  -webkit-text-fill-color: var(--text-primary);
  caret-color: var(--text-primary);
}

/* ---- Select ---- */
.mv-select-wrap {
  position: relative;
}

.mv-select-wrap .mv-select {
  padding-right: 36px;
  cursor: pointer;
}

.mv-select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--text-muted);
  pointer-events: none;
}

.mv-select option {
  background: #0d1526;
  color: var(--text-primary);
}

/* ---- Password wrapper ---- */
.mv-pw-wrap {
  position: relative;
}

.mv-pw-wrap .mv-input {
  padding-right: 46px;
}

.mv-pw-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.mv-pw-toggle:hover {
  color: var(--text-secondary);
}

.mv-pw-toggle svg {
  width: 18px;
  height: 18px;
}

/* ---- Password Strength Bar ---- */
.mv-pw-strength {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.mv-pw-strength-bar {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--border);
  transition: background 0.3s;
}

.mv-pw-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ---- Checkbox ---- */
.mv-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.mv-checkbox-wrap input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  accent-color: var(--accent);
  cursor: pointer;
  margin-top: 2px;
}

.mv-checkbox-label {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.mv-checkbox-label a {
  color: var(--text-link);
  text-decoration: none;
}

.mv-checkbox-label a:hover {
  text-decoration: underline;
}

/* ---- Submit Button ---- */
.mv-btn-submit {
  width: 100%;
  height: 48px;
  background: var(--white);
  color: #060d1b;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.1s;
  margin-top: 4px;
}

.mv-btn-submit:hover {
  background: #e8edf5;
}

.mv-btn-submit:active {
  transform: scale(0.99);
}

/* ---- Bottom Link ---- */
.mv-auth-footer-link {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
}

.mv-auth-footer-link a {
  color: var(--text-link);
  text-decoration: none;
  font-weight: 500;
}

.mv-auth-footer-link a:hover {
  text-decoration: underline;
}

/* ---- Divider ---- */
.mv-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 8px 0;
}

/* ---- Forgot Password link ---- */
.mv-forgot-link {
  text-align: right;
}

.mv-forgot-link a {
  color: var(--text-link);
  font-size: 13px;
  text-decoration: none;
}

.mv-forgot-link a:hover {
  text-decoration: underline;
}

/* ---- Info box (for verify page) ---- */
.mv-info-box {
  background: var(--promo-bg);
  border: 1px solid var(--promo-border);
  border-radius: 8px;
  padding: 16px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 4px;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .mv-auth-container {
    padding: 30px 16px 50px;
  }

  .mv-field-row {
    grid-template-columns: 1fr;
  }

  .mv-promo-bar {
    font-size: 12px;
    padding: 9px 18px;
    margin-top: 20px;
  }
}
