@font-face {
  font-family: 'MarkPro';
  src: url('Mark Pro/FontFont - MarkPro.otf') format('opentype');
  font-weight: 400; font-style: normal;
}
@font-face {
  font-family: 'MarkPro';
  src: url('Mark Pro/FontFont - MarkPro-Light.otf') format('opentype');
  font-weight: 300; font-style: normal;
}
@font-face {
  font-family: 'MarkPro';
  src: url('Mark Pro/FontFont - MarkPro-Bold.otf') format('opentype');
  font-weight: 700; font-style: normal;
}
@font-face {
  font-family: 'MarkPro';
  src: url('Mark Pro/FontFont - MarkPro-Medium.otf') format('opentype');
  font-weight: 500; font-style: normal;
}

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

body {
  font-family: 'MarkPro', 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  background-color: #004A80;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
  width: 100%;
  max-width: 400px;
  overflow: hidden;
}

.login-card-header {
  background: #004A80;
  padding: 32px 40px 28px;
  text-align: center;
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.login-brand-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-brand-name {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.login-brand-sub {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.login-card-body {
  padding: 32px 40px 36px;
}

.login-title {
  font-size: 20px;
  font-weight: 700;
  color: #41484F;
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 13px;
  color: #888;
  margin-bottom: 24px;
}

.login-error {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 55, 62, 0.07);
  border: 1px solid rgba(239, 55, 62, 0.25);
  color: #c0392b;
  border-radius: 7px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #41484F;
  margin-bottom: 6px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.form-group input {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid #E0E4E8;
  border-radius: 7px;
  font-family: 'MarkPro', 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  color: #41484F;
  background: #ffffff;
  transition: border-color 0.15s;
  outline: none;
}

.form-group input:focus {
  border-color: #004A80;
  box-shadow: 0 0 0 3px rgba(0, 74, 128, 0.1);
}

.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: #004A80;
  color: #ffffff;
  border: none;
  border-radius: 7px;
  font-family: 'MarkPro', 'Segoe UI', Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s;
  margin-top: 4px;
}

.login-btn:hover  { background: #003a66; }
.login-btn:active { background: #002d52; }

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 20px;
  color: #bbb;
  font-size: 12px;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E0E4E8;
}

.login-ms-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px;
  background: #0078d4;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-family: 'MarkPro', 'Segoe UI', Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  transition: background 0.15s;
}

.login-ms-btn:hover  { background: #006cbe; }
.login-ms-btn:active { background: #005ba1; }

/* Local account section — hidden until toggled or on login error */
.login-local-section {
  display: none;
  margin-top: 8px;
}

.login-local-link {
  margin-top: 20px;
  text-align: center;
}

.login-local-link button {
  background: none;
  border: none;
  font-family: 'MarkPro', 'Segoe UI', Arial, sans-serif;
  font-size: 12px;
  color: #c0c6cc;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}

.login-local-link button:hover {
  color: #888;
}

@media (max-width: 480px) {
  .login-card-body { padding: 24px 24px 28px; }
  .login-card-header { padding: 24px 24px 20px; }
}
