:root {
  --outlook-blue: #0072c6;
  --outlook-deep-blue: #005a9e;
  --ink: #323130;
  --muted: #605e5c;
  --line: #c8c6c4;
  --panel: #f7f7f7;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  color: var(--ink);
  background: var(--panel);
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 15px;
}

.login-shell {
  display: flex;
  min-height: 100vh;
}

.brand-panel {
  position: relative;
  display: grid;
  width: 34%;
  min-width: 260px;
  place-items: center;
  overflow: hidden;
  background: var(--outlook-blue);
}

.brand-panel::after {
  position: absolute;
  right: -15%;
  bottom: -11%;
  width: 65%;
  height: 42%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  content: "";
  transform: rotate(-18deg);
}

.login-panel {
  display: flex;
  flex: 1;
  justify-content: center;
  background: var(--panel);
}

.login-content {
  width: min(100%, 480px);
  padding: clamp(68px, 11vh, 128px) 48px 48px;
}

.outlook-mark {
  position: relative;
  display: block;
  flex: 0 0 auto;
  height: 1em;
  width: 1.05em;
}

.mark-back,
.mark-front {
  position: absolute;
  display: block;
}

.mark-back {
  top: 9%;
  right: 0;
  width: 68%;
  height: 78%;
  border: 0.1em solid currentColor;
  background: rgba(255, 255, 255, 0.2);
}

.mark-front {
  top: 21%;
  left: 0;
  width: 70%;
  height: 68%;
  border: 0.1em solid currentColor;
  background: currentColor;
  color: inherit;
}

.mark-front::after {
  position: absolute;
  top: 18%;
  left: 17%;
  width: 53%;
  height: 42%;
  border-right: 0.1em solid white;
  border-bottom: 0.1em solid white;
  content: "";
  transform: rotate(45deg) skew(-8deg, -8deg);
}

.outlook-mark--large {
  z-index: 1;
  color: white;
  font-size: 108px;
}

.outlook-mark--small {
  color: var(--outlook-blue);
  font-size: 36px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--outlook-blue);
  font-size: 34px;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1;
}

.login-form {
  margin-top: 54px;
}

.form-message {
  min-height: 20px;
  margin: 25px 0 -20px;
  color: var(--muted);
  font-size: 13px;
}

.form-message.error {
  color: #a4262c;
}

.form-message.success {
  color: #107c10;
}

.field-group + .field-group {
  margin-top: 23px;
}

.field-group label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.field-group input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: white;
  color: var(--ink);
  font: inherit;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.field-group input::placeholder {
  color: #767676;
  opacity: 1;
}

.field-group input:focus {
  border-color: var(--outlook-blue);
  box-shadow: 0 0 0 1px var(--outlook-blue);
}

.submit-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 31px;
}

.submit-button {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0 0 2px 1px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--outlook-blue);
  color: white;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transition: background 140ms ease, transform 140ms ease;
}

.submit-button:hover,
.submit-button:focus-visible {
  background: var(--outlook-deep-blue);
}

.submit-button:focus-visible,
.action-link:focus-visible,
.login-footer a:focus-visible {
  outline: 2px solid var(--outlook-blue);
  outline-offset: 4px;
}

.submit-button:active {
  transform: scale(0.94);
}

.action-link,
.login-footer a {
  color: var(--outlook-blue);
  text-decoration: none;
}

.action-link {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
}

.action-link:disabled,
.submit-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.action-link:hover,
.login-footer a:hover {
  text-decoration: underline;
}

.login-footer {
  margin-top: 84px;
  border-top: 1px solid #deddda;
  padding-top: 22px;
  font-size: 13px;
}

.signed-in {
  margin-top: 54px;
  font-size: 15px;
}

.signed-in p {
  margin: 0 0 24px;
}

.signed-in strong {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.logout-button {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--outlook-blue);
  background: transparent;
  color: var(--outlook-blue);
  cursor: pointer;
  font: inherit;
}

.logout-button:hover,
.logout-button:focus-visible {
  background: rgba(0, 114, 198, 0.08);
}

.logout-button:focus-visible {
  outline: 2px solid var(--outlook-blue);
  outline-offset: 3px;
}

@media (max-width: 620px) {
  .login-shell {
    display: block;
  }

  .brand-panel {
    width: 100%;
    min-width: 0;
    height: 184px;
  }

  .brand-panel::after {
    right: -8%;
    bottom: -54%;
    width: 55%;
    height: 100%;
  }

  .outlook-mark--large {
    font-size: 72px;
  }

  .login-content {
    padding: 47px 28px 36px;
  }

  .login-form {
    margin-top: 45px;
  }

  .login-footer {
    margin-top: 70px;
  }
}
