* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Google Sans', 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f0f4f9;
  color: #1f1f1f;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  overflow-x: hidden;
}

[v-cloak] {
  display: none !important;
}

#login-app {
  width: 100%;
  display: flex;
  justify-content: center;
}

#account-app {
  width: 100%;
  display: flex;
  justify-content: center;
}

.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1040px;
  min-height: 100vh;
  padding: 24px 0;
  position: relative;
}

.login-card {
  background-color: #ffffff;
  border-radius: 28px;
  width: 100%;
  min-height: 500px;
  display: flex;
  box-shadow: none;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  overflow: hidden;
  margin-bottom: 0;
  flex-grow: 0;
}

.login-page-card {
  max-width: 560px;
  min-height: auto;
  flex-direction: column;
  border: 1px solid #d3e3fd;
  padding: 8px;
}

.login-page-card .card-left {
  flex: none;
  padding: 48px 40px 20px 40px;
}

.login-page-card .card-right {
  flex: none;
  padding: 0 40px 48px 40px;
}

@media (min-width: 1040px) {
  .login-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  }
}

.card-left {
  flex: 0 0 40%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.card-right {
  flex: 0 0 60%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.main-title {
  font-family: 'Google Sans', 'Roboto', sans-serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 40px;
  color: #1f1f1f;
  margin-bottom: 12px;
  letter-spacing: 0;
}

.sub-title {
  font-size: 16px;
  line-height: 24px;
  color: #444746;
  font-weight: 400;
}

.view-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex-grow: 1;
  animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-group {
  margin-top: 10px;
  margin-bottom: 24px;
}

.input-container {
  position: relative;
  width: 100%;
  margin-bottom: 8px;
}

.google-input {
  width: 100%;
  height: 56px;
  padding: 16px;
  font-size: 16px;
  font-family: inherit;
  color: #1f1f1f;
  border: 1px solid #747775;
  border-radius: 4px;
  background-color: transparent;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.google-input:focus {
  border-color: #0b57d0;
  border-width: 2px;
  padding: 15px;
}

.google-label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #444746;
  background-color: #ffffff;
  padding: 0 4px;
  transition: all 0.2s ease;
  pointer-events: none;
  transform-origin: left top;
}

.google-input:focus ~ .google-label,
.google-input:not(:placeholder-shown) ~ .google-label {
  top: 0;
  transform: translateY(-50%) scale(0.75);
  color: #0b57d0;
}

.google-input:focus ~ .google-label {
  color: #0b57d0;
  font-weight: 500;
}

.info-text {
  font-size: 14px;
  line-height: 20px;
  color: #444746;
  margin-bottom: 24px;
}

.provider-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 24px;
}

.provider-btn {
  width: 100%;
  min-height: 56px;
  padding: 0 22px;
  border: 1px solid #c4c7c5;
  border-radius: 28px;
  background: #ffffff;
  color: #1f1f1f;
  font-family: 'Google Sans', 'Roboto', sans-serif;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
  text-align: left;
}

.provider-btn:hover {
  background: #f8fafd;
  border-color: #0b57d0;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.16);
}

.provider-mark {
  width: 28px;
  height: 28px;
  border-radius: 0;
  background: transparent;
  border: none;
  color: #171a21;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
}

.provider-mark img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

.actions-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 24px;
}

.google-btn {
  font-family: 'Google Sans', 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s, color 0.2s;
  border: none;
  outline: none;
  white-space: nowrap;
}

.primary-btn {
  background-color: #0b57d0;
  color: #ffffff;
  padding: 0 24px;
}

.primary-btn:hover {
  background-color: #0a4ebd;
  box-shadow: 0 1px 3px 0 rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);
}

.primary-btn:active {
  background-color: #0945a8;
}

.primary-btn:disabled {
  background-color: #e3e3e3;
  color: #9e9e9e;
  cursor: default;
  box-shadow: none;
}

.text-btn {
  background-color: transparent;
  color: #0b57d0;
  padding: 0 16px;
}

.text-btn:hover {
  background-color: rgba(11, 87, 208, 0.08);
}

.text-btn:active {
  background-color: rgba(11, 87, 208, 0.16);
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.profile-layout {
  padding-top: 10px;
}

.profile-card {
  display: flex;
  align-items: center;
  background-color: #f8fafd;
  border: 1px solid #c2e7ff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 24px;
  transition: background-color 0.2s;
  width: 100%;
}

.profile-card:hover {
  background-color: #eef5fc;
}

.identity-icons {
  position: relative;
  flex: 0 0 auto;
  margin-right: 16px;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #e8f0fe;
  color: #0b57d0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 500;
  margin-right: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  flex-shrink: 0;
}

.identity-provider-icon {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #d3e3fd;
  color: #1f1f1f;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.18);
}

.identity-provider-icon img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.identity-provider-icon span {
  font-size: 11px;
  font-weight: 700;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar img[src$=".svg"] {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.initial-avatar-text {
  font-size: 24px;
  font-weight: 600;
  color: #0b57d0;
}

.profile-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.profile-name {
  font-size: 18px;
  font-weight: 500;
  color: #1f1f1f;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-email {
  font-size: 14px;
  color: #444746;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-actions {
  margin-top: auto;
}

.account-card {
  min-height: 620px;
}

.account-nav {
  margin-top: 32px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.account-nav-btn {
  height: 44px;
  border: none;
  border-radius: 22px;
  background: transparent;
  color: #444746;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  cursor: pointer;
  text-align: left;
}

.nav-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e8f0fe;
  color: #0b57d0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
}

.nav-mark svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: block;
}

.account-nav-btn:hover,
.account-nav-btn.active {
  background: #e8f0fe;
  color: #0b57d0;
}

.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.account-title {
  font-size: 24px;
  font-weight: 400;
  color: #1f1f1f;
}

.account-section {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.account-danger-actions {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.readonly-input {
  background: #f8fafd;
  color: #5f6368;
}

.links-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #d3e3fd;
  border-radius: 16px;
  padding: 16px;
  background: #ffffff;
}

.link-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.link-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  color: #0b57d0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.link-icon span {
  font-size: 18px;
  font-weight: 700;
}

.link-icon img {
  width: 24px;
  height: 24px;
  border-radius: 0;
  object-fit: contain;
}

.link-icon img:not([src$=".svg"]) {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.link-account-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  background: #f1f3f4;
}

.link-account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.link-account-avatar.initial-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b57d0;
  font-size: 18px;
  font-weight: 600;
  background: #e8f0fe;
}

.link-name {
  font-size: 16px;
  font-weight: 500;
  color: #1f1f1f;
}

.link-meta {
  margin-top: 2px;
  font-size: 13px;
  color: #5f6368;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.danger-btn {
  color: #b3261e;
}

.danger-btn:hover {
  background-color: rgba(179, 38, 30, 0.08);
}

.danger-solid-btn {
  background-color: #b3261e;
  color: #ffffff;
  padding: 0 24px;
}

.danger-solid-btn:hover {
  background-color: #9f211a;
}

.danger-solid-btn:disabled {
  background-color: #e3e3e3;
  color: #9e9e9e;
  cursor: default;
}

.confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(32, 33, 36, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.confirm-modal {
  width: min(480px, 100%);
  background: #ffffff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 48px rgba(60, 64, 67, 0.28);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.confirm-enter-active,
.confirm-leave-active {
  transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.confirm-enter-from,
.confirm-leave-to {
  opacity: 0;
}

.confirm-enter-active .confirm-modal,
.confirm-leave-active .confirm-modal {
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.confirm-enter-from .confirm-modal,
.confirm-leave-to .confirm-modal {
  opacity: 0;
  transform: translateY(12px) scale(0.96);
}

.confirm-warning {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 4px solid #0b57d0;
  color: #0b57d0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.confirm-warning.danger {
  border-color: #f9ab00;
  color: #b06000;
  background: #fff8e1;
}

.confirm-modal h3 {
  font-size: 24px;
  font-weight: 500;
  color: #1f1f1f;
}

.confirm-modal p {
  color: #444746;
  font-size: 15px;
  line-height: 22px;
}

.confirm-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #1f1f1f;
  font-size: 14px;
  line-height: 20px;
}

.confirm-check input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.uid-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #5f6368;
  font-size: 13px;
  margin-top: 4px;
  word-break: break-all;
}

.uid-row code {
  color: #1f1f1f;
  background: #f1f3f4;
  border-radius: 6px;
  padding: 6px 8px;
}

.success-layout {
  align-items: center;
  justify-content: center;
  height: 100%;
}

.success-icon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  margin-bottom: 24px;
}

.success-icon-wrap mdui-icon {
  font-size: 120px;
  color: #34a853;
}

.page-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

#login-complete-app .page-footer {
  justify-content: center;
}

.version-text,
.icp-link {
  font-size: 13px;
  color: #747775;
  font-family: 'Google Sans', Roboto, sans-serif;
}

.icp-link {
  text-decoration: none;
}

.icp-link:hover {
  text-decoration: underline;
}

.complete-card .card-right {
  align-items: center;
}

.complete-view {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
}

.complete-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e8f0fe;
  color: #0b57d0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 6px;
  box-shadow: inset 0 0 0 1px rgba(11, 87, 208, 0.16);
}

.complete-title {
  font-size: 24px;
  font-weight: 500;
  color: #1f1f1f;
}

.complete-note {
  max-width: 320px;
  font-size: 14px;
  line-height: 20px;
  color: #444746;
}

.complete-countdown {
  font-size: 15px;
  font-weight: 500;
  color: #0b57d0;
}

.complete-actions {
  width: 100%;
  margin-top: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.complete-primary,
.complete-secondary {
  width: auto;
  min-width: 168px;
  justify-content: center;
}

.complete-secondary {
  border-color: #d3e3fd;
  background: #f8fafd;
}

.complete-secondary:hover {
  background: #eef5fc;
}

ms-store-badge {
  display: inline-block;
  height: 48px;
}

ms-store-badge::part(img) {
  height: 48px;
  width: auto;
}

.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.fade-enter-from {
  opacity: 0;
  transform: translateY(6px);
}

.fade-leave-to {
  opacity: 0;
  transform: translateY(-6px);
}

.main-title span,
.sub-title span {
  display: block;
}

@media (max-width: 1039px) {
  .login-container {
    max-width: 450px;
    padding: 16px;
    height: auto;
    min-height: 100vh;
  }

  .login-card {
    flex-direction: column;
    min-height: auto;
    border-radius: 28px;
    padding: 8px;
    box-shadow: none;
    background-color: #ffffff;
    border: 1px solid #d3e3fd;
  }

  .card-left {
    flex: none;
    padding: 32px 24px 20px 24px;
  }

  .card-right {
    flex: none;
    padding: 0 24px 32px 24px;
  }

  .login-page-card .card-left {
    padding: 32px 24px 20px 24px;
  }

  .login-page-card .card-right {
    padding: 0 24px 32px 24px;
  }

  .main-title {
    font-size: 28px;
    line-height: 36px;
  }

  .actions-container {
    gap: 8px;
    flex-wrap: wrap;
  }

  .account-nav {
    margin-top: 24px;
  }

  .account-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .link-card {
    align-items: stretch;
    flex-direction: column;
  }

  .link-card .google-btn {
    align-self: flex-end;
  }
}
