/* Microsoft 365–style sign-in (Brand Portal) */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
  font-size: 15px;
  color: #323130;
  background: #f3f2f1;
  display: flex;
  flex-direction: column;
  padding: 24px 16px 16px;
}

.ms-shell {
  flex: 1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ms-card {
  width: 100%;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.1);
  padding: 36px 40px 32px;
}

@media (max-width: 480px) {
  .ms-card {
    padding: 28px 24px 24px;
  }
}

.ms-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.ms-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.ms-product {
  font-size: 1.5rem;
  font-weight: 400;
  color: #737373;
  letter-spacing: -0.02em;
}

.ms-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #000000;
  margin: 0 0 8px;
  line-height: 1.25;
}

.ms-sub {
  margin: 0 0 24px;
  font-size: 0.8125rem;
  color: #605e5c;
  line-height: 1.45;
}

.ms-field {
  margin-bottom: 16px;
}

.ms-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #323130;
  margin-bottom: 6px;
}

.ms-req {
  color: #a4262c;
  font-weight: 600;
  margin-left: 2px;
}

.ms-input-box {
  position: relative;
  border: 1px solid #8a8886;
  border-radius: 2px;
  background: #ffffff;
  transition: border-color 0.12s ease;
}

.ms-input-box:focus-within {
  border-color: #0078d4;
  box-shadow: 0 0 0 1px #0078d4;
}

.ms-input-box input {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 2px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: #323130;
  background: transparent;
  outline: none;
}

.ms-input-box input::placeholder {
  color: #a19f9d;
}

.ms-input-box.ms-password-wrap input {
  padding-right: 56px;
}

.ms-show-pw {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  padding: 4px 2px;
  margin: 0;
  width: auto;
  font-size: 0.8125rem;
  font-family: inherit;
  color: #0078d4;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 400;
}

.ms-show-pw:hover {
  color: #106ebe;
  background: none;
}

.ms-show-pw:disabled {
  opacity: 0.5;
  cursor: default;
}

.ms-remember {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 24px;
  cursor: pointer;
  user-select: none;
}

.ms-remember input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #008272;
  cursor: pointer;
  flex-shrink: 0;
}

.ms-remember span {
  font-size: 0.8125rem;
  color: #323130;
  line-height: 1.35;
}

.ms-btn-primary {
  width: 100%;
  margin: 0;
  padding: 10px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  color: #ffffff;
  background: #000000;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.12s ease;
}

.ms-btn-primary:hover:not(:disabled) {
  background: #2b2b2b;
}

.ms-btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ms-foot {
  margin-top: 28px;
  text-align: center;
  font-size: 0.8125rem;
  color: #605e5c;
}

.ms-foot a {
  color: #0078d4;
  text-decoration: none;
}

.ms-foot a:hover {
  text-decoration: underline;
}

.ms-msg {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 2px;
  font-size: 0.8125rem;
  display: none;
  line-height: 1.4;
}

.ms-msg.ok {
  display: block;
  background: #dff6dd;
  color: #107c10;
  border: 1px solid #107c10;
}

.ms-msg.err {
  display: block;
  background: #fde7e9;
  color: #a4262c;
  border: 1px solid #a4262c;
}

.ms-page-footer {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 24px 8px 8px;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  align-self: stretch;
}

.ms-page-footer a {
  font-size: 0.75rem;
  color: #605e5c;
  text-decoration: none;
}

.ms-page-footer a:hover {
  text-decoration: underline;
  color: #323130;
}

/* Progress ShareFile–style viewer (post-verify) */
.sf-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
  background: #ececee;
  color: #1a1a1a;
  display: flex;
  flex-direction: column;
}

.sf-topbar {
  min-height: 56px;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  display: grid;
  grid-template-columns: 1fr minmax(160px, 420px) 1fr;
  align-items: center;
  padding: 0 16px 0 20px;
  gap: 12px;
  flex-shrink: 0;
}

.sf-topbar-left {
  justify-self: start;
}

.sf-logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #000;
}

.sf-logo-text strong {
  font-weight: 700;
}

.sf-name {
  font-weight: 400;
}

.sf-reg {
  font-size: 0.55em;
  vertical-align: super;
  font-weight: 400;
}

.sf-topbar-center {
  justify-self: center;
  width: 100%;
  max-width: 420px;
}

.sf-search {
  width: 100%;
  padding: 8px 14px 8px 36px;
  border: 1px solid #d1d5db;
  border-radius: 22px;
  font-size: 14px;
  background: #f9fafb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242.656a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") 12px center no-repeat;
}

.sf-search::placeholder {
  color: #9ca3af;
}

.sf-topbar-right {
  justify-self: end;
}

.sf-help {
  font-size: 14px;
  color: #374151;
  text-decoration: none;
}

.sf-help:hover {
  text-decoration: underline;
}

.sf-layout {
  flex: 1;
  display: flex;
  min-height: 0;
}

.sf-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: #f7f7f8;
  border-right: 1px solid #e0e0e0;
  padding: 16px 0;
}

.sf-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 14px;
  color: #374151;
  cursor: default;
}

.sf-nav-active {
  background: #eef2ff;
  color: #4338ca;
  font-weight: 600;
  border-right: 3px solid #635bff;
}

.sf-main {
  flex: 1;
  min-width: 0;
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
}

.sf-panel {
  flex: 1;
  min-height: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.sf-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}

.sf-panel-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.sf-panel-download-only {
  min-height: 280px;
}

.sf-private-body {
  padding: 24px 22px 28px;
}

.sf-file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  margin-bottom: 20px;
}

.sf-file-icon {
  color: #635bff;
  flex-shrink: 0;
}

.sf-file-name {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  word-break: break-all;
}

.sf-download-primary {
  display: inline-block;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: #635bff;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.12s ease;
}

.sf-download-primary:hover {
  background: #4f46e5;
  color: #fff;
}

@media (max-width: 768px) {
  .sf-sidebar {
    display: none;
  }

  .sf-topbar {
    grid-template-columns: 1fr auto;
  }

  .sf-topbar-center {
    display: none;
  }
}
