:root {
  --m-primary: #035926;
  --m-primary-hover: #046b2e;
  --m-text: rgba(0, 0, 0, .87);
  --m-muted: #757575;
  --m-line: #9e9e9e;
  --m-divider: #e0e0e0;
  --m-bg: #f5f5f5;
  --m-danger: #d32f2f;
  --m-z1: 0 2px 2px 0 rgba(0, 0, 0, .14), 0 3px 1px -2px rgba(0, 0, 0, .12), 0 1px 5px 0 rgba(0, 0, 0, .2);
  --m-z2: 0 4px 5px 0 rgba(0, 0, 0, .14), 0 1px 10px 0 rgba(0, 0, 0, .12), 0 2px 4px -1px rgba(0, 0, 0, .3);
}
.m-body { background: var(--m-bg); }
.m-main { padding: 96px 0 56px; min-height: calc(100vh - 120px); color: var(--m-text); }
.m-narrow { max-width: 420px; margin: 0 auto; }
.m-wide { max-width: 960px; margin: 0 auto; }
.m-card { background: #fff; border-radius: 4px; box-shadow: var(--m-z1); padding: 24px; overflow: hidden; }
.m-card + .m-card { margin-top: 16px; }
.m-card-title { font-size: 18px; font-weight: 500; margin: 0 0 4px; color: var(--m-text); }
.m-card-sub { font-size: 14px; color: var(--m-muted); margin: 0 0 16px; }

.m-brand { margin: -24px -24px 20px; padding: 0 56px 0 20px; height: 56px; display: flex; align-items: center; background: linear-gradient(to right, #37474f, #455a64); }
.m-brand a { display: inline-flex; align-items: center; gap: 10px; color: #fff !important; font-size: 18px; font-weight: 700; text-decoration: none !important; }
.m-brand img { width: 30px; height: 30px; }
.m-center .m-brand { justify-content: center; padding: 0 20px; }

.m-auth h2, .m-h2 { font-size: 20px; font-weight: 500; line-height: 1.4; margin: 0 0 4px; color: var(--m-text); }
.m-sub { font-size: 14px; color: var(--m-muted); margin: 0 0 20px; line-height: 1.5; }
.m-center h2, .m-center .m-sub { text-align: center; }

.m-field { display: block; margin: 0 0 18px; font-size: 14px; color: var(--m-muted); cursor: default; }
.m-field > span, .m-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 400; color: var(--m-muted); margin: 0; transition: color .2s; }
.m-field:focus-within > span { color: var(--m-primary); }
.m-field input:not(.browser-default), .m-field select, .m-input:not(.browser-default) {
  display: block; width: 100%; height: 40px; margin: 0; padding: 0; box-sizing: border-box;
  font: inherit; font-size: 16px; color: var(--m-text); background: transparent;
  border: 0; border-bottom: 1px solid var(--m-line); border-radius: 0; outline: 0; box-shadow: none;
  transition: border-color .2s, box-shadow .2s;
}
.m-field input:not(.browser-default):focus:not([readonly]), .m-field select:focus, .m-input:not(.browser-default):focus:not([readonly]) { border-bottom-color: var(--m-primary); box-shadow: 0 1px 0 0 var(--m-primary); }
.m-field input:not(.browser-default).is-invalid, .m-field input:not(.browser-default).is-invalid:focus:not([readonly]) { border-bottom-color: var(--m-danger); box-shadow: 0 1px 0 0 var(--m-danger); }
.m-field input::placeholder { color: #bdbdbd; }
.m-err { display: block; font-size: 12px; color: var(--m-danger); margin-top: 4px; }
.m-row { display: flex; gap: 12px; align-items: flex-end; }
.m-row > * { flex: 1 1 0; min-width: 0; }
.m-row > .m-btn { flex: 0 0 auto; }
.m-hint { font-size: 12px; color: var(--m-muted); margin-top: 4px; font-style: normal; }
.m-field > span em.m-hint { margin: 0; }
.m-turnstile { margin: 0 0 16px; }
.m-turnstile:empty { margin: 0; }
.m-field .iti { width: 100%; display: block; }
.m-field .iti input:not(.browser-default) { padding-left: 52px; }

.m-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 20px;
  font: inherit; font-size: 15px; font-weight: 500; line-height: 1; letter-spacing: .5px; border: 0; border-radius: 2px;
  cursor: pointer; text-decoration: none !important; transition: background-color .2s, box-shadow .2s;
}
.m-btn[disabled], .m-btn.is-busy { opacity: .55; cursor: default; box-shadow: none; }
.m-btn-block { display: flex; width: 100%; }
.m-btn-primary { background: var(--m-primary); color: #fff !important; box-shadow: var(--m-z1); }
.m-btn-primary:hover:not([disabled]) { background: var(--m-primary-hover); box-shadow: var(--m-z2); }
.m-btn-danger { background: var(--m-danger); color: #fff !important; box-shadow: var(--m-z1); }
.m-btn-danger:hover:not([disabled]) { background: #c62828; }
.m-btn-light, .m-btn-soft { background: transparent; color: var(--m-primary) !important; }
.m-btn-light:hover:not([disabled]), .m-btn-soft:hover:not([disabled]) { background: rgba(3, 89, 38, .08); }
.m-row .m-btn-soft { height: 36px; padding: 0 12px; font-size: 14px; border: 1px solid var(--m-primary); margin-bottom: 2px; }
.m-btn-google { background: #fff; color: rgba(0, 0, 0, .7) !important; border: 1px solid #dadce0; }
.m-btn-google:hover:not([disabled]) { background: #f8f9fa; }
.m-btn-google img { width: 18px; height: 18px; }

.m-or { display: flex; align-items: center; gap: 12px; margin: 16px 0; font-size: 13px; color: var(--m-muted); }
.m-or::before, .m-or::after { content: ""; flex: 1; height: 1px; background: var(--m-divider); }
.m-link { color: var(--m-primary) !important; cursor: pointer; text-decoration: none !important; }
.m-link:hover { text-decoration: underline !important; }
.m-field > span .m-link { font-size: 13px; }
.m-switch { font-size: 14px; color: var(--m-muted); margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--m-divider); text-align: center; }

.m-alert { font-size: 14px; line-height: 1.5; padding: 10px 12px; margin: 0 0 16px; border-left: 3px solid; }
.m-alert[hidden] { display: none; }
.m-alert-error { background: #ffebee; border-color: var(--m-danger); color: #b71c1c; }
.m-alert-ok { background: #e8f5e9; border-color: #43a047; color: #1b5e20; }
.m-alert-info { background: #eceff1; border-color: #546e7a; color: #37474f; }

.m-steps { display: flex; margin: 0 0 20px; padding: 0; list-style: none; border-bottom: 1px solid var(--m-divider); }
.m-steps li { flex: 1; text-align: center; font-size: 14px; color: var(--m-muted); padding: 0 0 8px; margin-bottom: -1px; border-bottom: 2px solid transparent; }
.m-steps li.is-active { color: var(--m-primary); border-bottom-color: var(--m-primary); }
.m-steps li.is-done { color: var(--m-text); }

.m-view { display: none; }
.m-auth[data-view="login"] .m-view[data-v="login"],
.m-auth[data-view="register"] .m-view[data-v="register"],
.m-auth[data-view="details"] .m-view[data-v="details"],
.m-auth[data-view="forgot"] .m-view[data-v="forgot"] { display: block; }

.m-modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: flex-start; justify-content: center; padding: 8vh 16px 24px; background: rgba(0, 0, 0, .5); overflow-y: auto; }
.m-modal.is-open { display: flex; }
.m-modal-box { position: relative; width: 100%; max-width: 420px; background: #fff; border-radius: 4px; overflow: hidden; padding: 24px; color: var(--m-text);
  box-shadow: 0 24px 38px 3px rgba(0, 0, 0, .14), 0 9px 46px 8px rgba(0, 0, 0, .12), 0 11px 15px -7px rgba(0, 0, 0, .2); }
.m-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; padding: 0; border: 0; background: transparent; border-radius: 50%; font-size: 26px; line-height: 36px; color: rgba(255, 255, 255, .85); cursor: pointer; }
.m-close:hover, .m-close:focus { background: rgba(255, 255, 255, .12); color: #fff; }
.m-modal-intro { font-size: 14px; color: #795548; background: #fff8e1; border-left: 3px solid #ffb300; padding: 10px 12px; margin: 0 0 16px; line-height: 1.5; }
.m-extra { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--m-divider); font-size: 14px; text-align: center; color: var(--m-muted); }
.m-extra a { color: var(--m-primary); }
.m-extra > div + div { margin-top: 6px; }
html.m-locked { overflow: hidden; }

.m-dialog .m-modal-box { max-width: 400px; }
.m-dialog p { font-size: 15px; color: var(--m-text); margin: 0 0 20px; line-height: 1.6; }
.m-dialog .m-row { justify-content: flex-end; }
.m-dialog .m-row > * { flex: 0 0 auto; }

.m-dash { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.m-profile { text-align: center; }
.m-avatar { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 500; color: #fff; background: var(--m-primary); }
.m-profile-name { font-size: 18px; font-weight: 500; margin: 0; word-break: break-word; }
.m-profile-mail { font-size: 14px; color: var(--m-muted); margin: 4px 0 16px; word-break: break-all; }
.m-facts { list-style: none; padding: 0; margin: 0 0 16px; text-align: left; border-top: 1px solid var(--m-divider); }
.m-facts li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 10px 0; border-bottom: 1px solid var(--m-divider); }
.m-facts li span { color: var(--m-muted); }
.m-badge { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 2px; background: #eceff1; color: #546e7a; }
.m-badge-ok { background: #e8f5e9; color: #2e7d32; }
.m-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.m-danger-zone .m-card-title { color: var(--m-danger); }
.m-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.m-code { display: flex; gap: 10px; justify-content: center; margin: 16px 0 20px; }
.m-code input:not(.browser-default) { width: 40px; height: 48px; margin: 0; padding: 0; box-sizing: border-box; text-align: center; font-size: 22px; color: var(--m-text); background: transparent; border: 0; border-bottom: 2px solid var(--m-line); border-radius: 0; outline: 0; box-shadow: none; }
.m-code input:not(.browser-default):focus:not([readonly]) { border-bottom-color: var(--m-primary); box-shadow: none; }
.m-center { text-align: center; }
.m-icon-ok, .m-icon-bad { width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff; }
.m-icon-ok { background: #43a047; }
.m-icon-bad { background: var(--m-danger); }

@media (max-width: 767px) {
  .m-main { padding-top: 80px; }
  .m-dash { grid-template-columns: 1fr; }
  .m-grid2 { grid-template-columns: 1fr; }
  .m-modal { padding: 16px 12px; }
  .m-modal-box, .m-card { padding: 20px 16px; }
  .m-brand { margin: -20px -16px 18px; padding-left: 16px; }
}
