:root {
  --auth-bg: #ffffff;
  --auth-border: #ecedf0;
  --auth-text: #1f2937;
  --auth-muted: #6b7280;
  --auth-primary: #1f6feb;
  --auth-banner-bg: #f3f3f3;
}

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

/* Page */
.auth-body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--auth-bg);
  color: var(--auth-text);
}

/* Top banner */
.auth-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--auth-banner-bg);
  border-bottom: none;
  z-index: 20;
}

.auth-banner__inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 32px;
}

/* Logo */
.auth-logo {
  height: 55px;
  width: auto;
}

/* Main layout */
.auth-main {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 150px 16px 48px;
}

/* Login column */
.auth-panel {
  width: 100%;
  max-width: 380px;
  background: transparent;
  border: none;
  padding: 0;
}

/* Headings */
.auth-heading {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-align: center;
}

.auth-sub {
  margin: 0 0 22px;
  color: var(--auth-muted);
  font-size: 15px;
  text-align: center;
}

/* Form */
.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  font-size: 14px;
  font-weight: 200;
  color: var(--auth-muted);
  margin-bottom: 8px;
}

/* Inputs */
.auth-form input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--auth-border);
  background: #ffffff;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form input {
  margin-top: 6px;
}

.auth-form input:focus {
  outline: none;
  border-color: #c4d4ff;
  box-shadow: 0 0 0 1px #c4d4ff;
}

/* Primary button */
.auth-actions {
  margin-top: 6px;
}

.auth-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--auth-primary);
  background: var(--auth-primary);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
}

.auth-btn:hover {
  background: #175bcc;
  border-color: #175bcc;
}

/* Links */
.auth-link-row {
  margin-top: 12px;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--auth-muted);
}

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

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

.auth-footer {
  margin-top: 22px;
  text-align: center;
  font-size: 14px;
  color: var(--auth-muted);
}

/* Errors */
.auth-errors {
  margin-bottom: 10px;
}

.auth-alert,
.auth-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
}

.auth-alert.success {
  background: #ecfdf3;
  color: #116149;
  border-color: #bef5cb;
}

.field-error {
  margin-top: 6px;
  color: #b91c1c;
  font-size: 13px;
}

/* SSO divider */
.sso-divider {
  position: relative;
  text-align: center;
  margin: 26px 0 28px;
  font-size: 13px;
  color: var(--auth-muted);
}

.sso-divider span {
  background: var(--auth-bg);
  padding: 0 8px;
  position: relative;
  z-index: 1;
}

.sso-divider::before,
.sso-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 38%;
  height: 2px;
  background: var(--auth-border);
}

.sso-divider::before { left: 0; }
.sso-divider::after  { right: 0; }

/* === MONDAY-STYLE SSO ROW === */
.sso-row {
  display: flex;
  gap: 12px;
  max-width: 250px;   /* 👈 controls how narrow the SSO buttons are */
  margin: 0 auto;     /* center the row */
}


.sso-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--auth-border);
  background: #ffffff;
  color: #111827;
  font-weight: 300;
  font-size: 14px;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.sso-btn:hover {
  border-color: #c4c8d4;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.06);
  transform: translateY(-1px);
}

/* Icons */
.sso-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
}

.sso-icon svg {
  width: 100%;
  height: 100%;
}

/* Microsoft four-square */
.sso-icon.microsoft {
  display: grid;
  grid-template-columns: repeat(2, 8px);
  grid-template-rows: repeat(2, 8px);
  gap: 2px;
}

.sso-icon.microsoft span:nth-child(1) { background: #f25022; }
.sso-icon.microsoft span:nth-child(2) { background: #7fba00; }
.sso-icon.microsoft span:nth-child(3) { background: #00a4ef; }
.sso-icon.microsoft span:nth-child(4) { background: #ffb900; }

/* Mobile */
@media (max-width: 520px) {
  .auth-banner__inner {
    padding: 0 20px;
  }

  .auth-main {
    padding: 100px 12px 32px;
  }

  .auth-panel {
    max-width: 100%;
  }

  .sso-row {
    flex-direction: column;
  }
}
