
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap');

:root {
  --blue: #0b57d0;
  --blue-hover: #0842a0;
  --background: #f0f4f9;
  --text: #1f1f1f;
  --muted: #444746;
  --border: #747775;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font-family: Roboto, Arial, sans-serif;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* WHITE CARD */

.signin-card {
  position: relative;
  overflow: hidden;
  width: min(1040px, 100%);
  min-height: 390px;
  padding: 40px;
  background: white;
  border-radius: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
}

/* LEFT SIDE */

.intro {
  min-width: 0;
}

.logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: white;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 18px;
}

.demo-label {
  display: block;
  width: fit-content;
  color: #5f6368;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
}

h1 {
  margin: 20px 0 12px;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.5px;
}

.intro p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

/* USERNAME BUBBLE */

.account-bubble {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin-top: 2px;
  padding: 5px 12px 5px 6px;
  border: 1px solid #747775;
  border-radius: 999px;
  background: transparent;
  color: #1f1f1f;
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.account-bubble:hover {
  background: #f1f3f4;
}

.account-bubble:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.account-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bubble-username {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bubble-arrow {
  flex-shrink: 0;
}

/* INPUTS */

.form-area {
  min-width: 0;
  padding-top: 80px;
}

.input-group {
  position: relative;
}

.input-group input {
  width: 100%;
  height: 56px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: white;
  font: inherit;
  outline: none;
}

.input-group label {
  position: absolute;
  top: 18px;
  left: 13px;
  padding: 0 5px;
  color: var(--muted);
  background: white;
  pointer-events: none;
  transition: all 0.18s ease;
}

.input-group input:focus {
  border: 2px solid var(--blue);
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
  top: -9px;
  font-size: 12px;
  color: var(--blue);
}

/* BUTTONS */

.actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  margin-top: 70px;
}

button {
  font: inherit;
  cursor: pointer;
}

.text-button {
  background: transparent;
  border: none;
  color: var(--blue);
  padding: 10px 5px;
  font-size: 14px;
  font-weight: 500;
}

.primary-button {
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 100px;
  padding: 11px 27px;
  font-size: 14px;
  font-weight: 500;
}

.primary-button:hover {
  background: var(--blue-hover);
}

/* TWO-PART BLUE LOADING BAR */

.loading-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 1000;
  overflow: hidden;
  pointer-events: none;
}

.progress-container {
  position: relative;
  width: 100%;
  height: 4px;
  background-color: #e8f0fe;
  overflow: hidden;
}

.progress-container::before,
.progress-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  will-change: left, right;
  background-color: #1a73e8;
}

.progress-container::before {
  animation: google-bar-primary 2s
    cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
}

.progress-container::after {
  animation: google-bar-secondary 2s
    cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
}

@keyframes google-bar-primary {
  0% {
    left: -35%;
    right: 100%;
  }
  60% {
    left: 100%;
    right: -90%;
  }
  100% {
    left: 100%;
    right: -90%;
  }
}

@keyframes google-bar-secondary {
  0% {
    left: -200%;
    right: 100%;
  }
  60% {
    left: 107%;
    right: -8%;
  }
  100% {
    left: 107%;
    right: -8%;
  }
}

/* TRANSITIONS */

.screen-enter {
  animation: screenFade 0.28s ease-out;
}

@keyframes screenFade {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* COMPLETION */

.success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e6f4ea;
  color: #137333;
  display: grid;
  place-items: center;
  font-size: 26px;
}

h2 {
  font-size: 23px;
  font-weight: 500;
  margin-bottom: 12px;
}

.completion-text,
.helper {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.helper {
  margin: 14px 0 0;
}

/* FOOTER */

footer {
  width: min(1000px, 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 4px;
  color: var(--muted);
  font-size: 12px;
}

footer nav {
  display: flex;
  gap: 24px;
}

/* MOBILE */

@media (max-width: 700px) {
  body {
    background: white;
  }

  .page {
    justify-content: flex-start;
    padding: 0 24px 20px;
  }

  .signin-card {
    display: block;
    min-height: auto;
    padding: 28px 0;
  }

  .form-area {
    padding-top: 42px;
  }

  .actions {
    margin-top: 60px;
  }

  footer {
    margin-top: auto;
    flex-wrap: wrap;
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .progress-container::before,
  .progress-container::after,
  .screen-enter {
    animation: none;
  }
}

.guest-mode-text {
  margin-top: 36px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #1f1f1f;
  max-width: 430px;
}

.guest-mode-text a {
  color: #0b57d0;
  font-weight: 500;
  text-decoration: none;
}

.guest-mode-text a:hover {
  text-decoration: underline;
}
.forgot-email {
  display: inline-block;
  margin-top: 9px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #0b57d0;
  text-decoration: none;
}

.forgot-email:hover {
  text-decoration: underline;
}
.show-password-option {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 14px;
  color: #1f1f1f;
  cursor: pointer;
}

.show-password-option input {
  width: 18px;
  height: 18px;
  accent-color: #0b57d0;
  cursor: pointer;
}
.show-password-option {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 14px;
  color: #1f1f1f;
  cursor: pointer;
}

.show-password-option input {
  width: 18px;
  height: 18px;
  accent-color: #0b57d0;
  cursor: pointer;
}
.create-account-link {
  display: inline-flex;
  align-items: center;
  color: #0b57d0;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.create-account-link:hover {
  text-decoration: underline;
}
/* EMAIL VALIDATION ERROR */

.input-group.has-error input,
.input-group.has-error input:focus {
  border: 2px solid #b3261e;
}

.input-group.has-error label,
.input-group.has-error input:focus + label {
  color: #b3261e;
}

.input-error {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 0;
  color: #b3261e;
  font-size: 12px;
  font-family: Roboto, Arial, sans-serif;
}

.error-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #b3261e;
  color: white;
  font-size: 10px;
  font-weight: 700;
}
.forgot-password-link {
  display: inline-flex;
  align-items: center;
  color: #0b57d0;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.forgot-password-link:hover {
  text-decoration: underline;
}
.logo-image {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin-bottom: 18px;
}