:root {
  --g-blue: #1a73e8;
  --g-blue-hover: #1b66c9;
  --g-text: #202124;
  --g-grey: #5f6368;
  --g-border: #dadce0;
  --g-input-border: #747775;
}

* { box-sizing: border-box; }

html, body.account-body {
  margin: 0;
  padding: 0;
  background: #fff;
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  color: var(--g-text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.account-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.account-card {
  background: #fff;
  border: 1px solid var(--g-border);
  border-radius: 28px;
  padding: 48px 40px 36px;
  width: 100%;
  max-width: 448px;
}

.account-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 16px;
}

/* Logo slot — swap the SVG in index.html for your company logo (keep it ~24-48px tall). */
.account-logo {
  width: 48px;
  height: 48px;
  display: block;
  margin: 0 0 16px 0;
}

.account-content h1 {
  font-size: 32px;
  line-height: 40px;
  font-weight: 400;
  margin: 0 0 8px 0;
  letter-spacing: 0;
}

.account-subtitle {
  font-size: 16px;
  line-height: 24px;
  margin: 0 0 32px 0;
  color: var(--g-text);
}

/* The email "chip" shown on the password screen */
.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--g-border);
  border-radius: 100px;
  padding: 4px 12px 4px 10px;
  font-size: 14px;
  color: var(--g-text);
  margin: 0 0 32px 0;
  cursor: pointer;
}
.account-chip:hover { background: #f8f9fa; }
.account-chip svg { width: 16px; height: 16px; }

.show-password {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--g-text);
}
.show-password input { width: 18px; height: 18px; accent-color: var(--g-blue); cursor: pointer; }

[hidden] { display: none !important; }

.account-field {
  position: relative;
  margin-bottom: 24px;
}

.account-field input {
  width: 100%;
  height: 56px;
  padding: 13px 15px;
  margin: 0;
  border: 1px solid var(--g-input-border);
  border-radius: 4px;
  background: transparent;
  font-size: 16px;
  font-family: inherit;
  color: var(--g-text);
  outline: none;
  transition: border 0.12s;
}

.account-field input:focus {
  border: 2px solid var(--g-blue);
  padding: 12px 14px;
}

.account-field input::placeholder { color: transparent; }

.account-field label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  padding: 0 4px;
  font-size: 16px;
  color: var(--g-grey);
  pointer-events: none;
  transition: all 0.12s ease-out;
}

.account-field input:focus + label,
.account-field input:not(:placeholder-shown) + label,
.account-field input:-webkit-autofill + label {
  top: 0;
  font-size: 12px;
}

.account-field input:focus + label { color: var(--g-blue); }

/* Keep autofilled fields looking like a normal white field, not Chrome's yellow */
.account-field input:-webkit-autofill,
.account-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--g-text);
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  transition: background-color 9999s ease-in-out 0s;
}

.account-help {
  margin: -16px 0 0 0;
  font-size: 14px;
  font-weight: 500;
}

.account-card a {
  color: var(--g-blue);
  text-decoration: none;
  font-weight: 500;
}

.account-card a:hover { text-decoration: underline; }

.account-hint {
  font-size: 14px;
  line-height: 20px;
  color: var(--g-text);
  margin: 28px 0 0 0;
}

.doc-file {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--g-border);
  border-radius: 8px;
  padding: 16px;
  margin: 8px 0 8px;
}
.doc-icon { width: 36px; height: 36px; flex: 0 0 auto; }
.doc-name { font-size: 16px; color: var(--g-text); }
.doc-meta { font-size: 13px; color: var(--g-grey); margin-top: 2px; }

.account-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
}
.account-actions.end { justify-content: flex-end; }

.account-create {
  font-size: 14px;
  font-weight: 500;
  color: var(--g-blue);
}

.account-next {
  background: var(--g-blue);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 0 24px;
  height: 40px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: box-shadow 0.12s, background 0.12s;
}

.account-next:hover {
  background: var(--g-blue-hover);
  box-shadow: 0 1px 2px rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
}

.password-step-gap { margin-top: 24px; }

.account-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  font-size: 12px;
  color: var(--g-grey);
}

.account-footer select {
  border: none;
  background: transparent;
  font-size: 12px;
  color: var(--g-grey);
  font-family: inherit;
  cursor: pointer;
}

.account-footer nav { display: flex; gap: 24px; }
.account-footer a { color: var(--g-grey); text-decoration: none; }
.account-footer a:hover { text-decoration: underline; }

@media (max-width: 520px) {
  .account-wrap { padding: 0; align-items: stretch; }
  .account-card {
    border: none;
    border-radius: 0;
    padding: 24px;
    max-width: none;
  }
  .account-content h1 { font-size: 24px; line-height: 32px; }
}
