/* Import Google Sans font */
@import url("https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&family=Roboto:wght@400;500;700&display=swap");

:root {
  --anthropic-orange: #d97c57;
  --anthropic-dark: #1a1817;
  --anthropic-cream: #f7f3f0;
  --anthropic-grey: #6b6b6b;
  --google-blue: #1a73e8;
  --google-blue-hover: #1765cc;
  --google-blue-active: #1558b0;
  --text-primary: #202124;
  --text-secondary: #5f6368;
  --text-light: #80868b;
  --background: #ffffff;
  --surface: #ffffff;
  --border: #dadce0;
  --shadow: rgba(60, 64, 67, 0.3);
  --shadow-light: rgba(60, 64, 67, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Google Sans",
    "Roboto",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for mobile */
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  padding: max(2rem, env(safe-area-inset-top))
    max(2rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom))
    max(2rem, env(safe-area-inset-left));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px;
  max-width: 450px;
  width: 100%;
  width: calc(100% - 2rem); /* Account for container padding */
  max-width: min(450px, 90vw); /* Responsive max-width */
  box-shadow:
    0 1px 2px 0 var(--shadow-light),
    0 1px 3px 1px var(--shadow-light);
  margin: 0 auto; /* Center the card */
}

.logos-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.logo {
  object-fit: contain;
}

/* Ensure both logos have consistent sizing */
.logo:first-child {
  /* Claude logo */
  width: 48px;
  height: 48px;
}

.logo:last-child {
  /* Google Calendar logo - make it bigger */
  width: 72px;
  height: 72px;
}

.handshake {
  font-size: 28px;
  margin: 0 1rem 0 1.5rem;
  color: var(--text-light);
}

.title {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 8px;
  text-align: center;
  color: var(--text-primary);
  font-family: "Google Sans", "Roboto", sans-serif;
  letter-spacing: 0;
  line-height: 32px;
}

.title.error {
  color: #ea4335;
}

/* Add a subtle separator after the logos */
.logos-container:after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--border);
  position: absolute;
  bottom: -16px;
  left: 0;
}

.logos-container {
  position: relative;
  padding-bottom: 16px;
}

.description {
  color: var(--text-secondary);
  margin-bottom: 32px;
  text-align: center;
  line-height: 1.5;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.2px;
}

.description ul {
  margin: 16px 0;
  text-align: left;
  list-style: none;
  padding-left: 0;
}

.description li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 24px;
}

.description li:before {
  content: "•";
  position: absolute;
  left: 8px;
  color: var(--google-blue);
  font-weight: 700;
}

.button-container {
  display: flex;
  justify-content: center;
}

.google-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--google-blue);
  color: white;
  padding: 0 24px;
  height: 40px;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  font-family: "Google Sans", "Roboto", sans-serif;
  letter-spacing: 0.25px;
  min-width: 240px;
  transition:
    background-color 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
  touch-action: manipulation; /* Improve touch responsiveness */
  box-shadow:
    0 1px 2px 0 rgba(66, 133, 244, 0.3),
    0 1px 3px 1px rgba(66, 133, 244, 0.15);
}

.google-button:hover {
  background: var(--google-blue-hover);
  box-shadow:
    0 1px 3px 0 rgba(66, 133, 244, 0.3),
    0 4px 8px 3px rgba(66, 133, 244, 0.15);
}

.google-button:active {
  background: var(--google-blue-active);
  box-shadow:
    0 1px 3px 0 rgba(66, 133, 244, 0.3),
    0 4px 8px 3px rgba(66, 133, 244, 0.15);
}

.google-icon {
  width: 18px;
  height: 18px;
}

/* Success page styles */
.success-message {
  color: var(--text-secondary);
  margin-bottom: 24px;
  text-align: center;
  line-height: 1.5;
  font-size: 14px;
}

.success-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.success-actions a {
  color: var(--google-blue);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.success-actions a:hover {
  background-color: rgba(26, 115, 232, 0.04);
  text-decoration: none;
}

.success-actions a:active {
  background-color: rgba(26, 115, 232, 0.12);
}

/* Responsive design - Tablet and smaller laptops */
@media (max-width: 1024px) {
  .container {
    padding: 1.5rem;
  }

  .card {
    padding: 32px;
    max-width: 420px;
  }
}

/* Mobile landscape and large phones */
@media (max-width: 768px) {
  .card {
    padding: 24px;
    max-width: 380px;
  }

  .title {
    font-size: 20px;
    line-height: 28px;
  }
}

/* Mobile portrait */
@media (max-width: 640px) {
  .container {
    padding: 1rem;
  }

  .card {
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 2px 0 var(--shadow-light);
  }

  .logos-container {
    gap: 0.25rem;
    margin-bottom: 24px;
  }

  .logo:first-child {
    width: 40px;
    height: 40px;
  }

  .logo:last-child {
    width: 56px;
    height: 56px;
  }

  .handshake {
    font-size: 24px;
    margin: 0 0.75rem 0 1rem;
  }

  .title {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 4px;
  }

  .description {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .google-button {
    font-size: 14px;
    padding: 0 20px;
    height: 36px;
    min-width: 200px;
  }
}

/* Very small devices */
@media (max-width: 375px) {
  .container {
    padding: 0.5rem;
  }

  .card {
    padding: 16px;
  }

  .logos-container {
    gap: 0.25rem;
  }

  .logo:first-child {
    width: 36px;
    height: 36px;
  }

  .logo:last-child {
    width: 48px;
    height: 48px;
  }

  .handshake {
    font-size: 20px;
    margin: 0 0.5rem 0 0.75rem;
  }

  .title {
    font-size: 16px;
    line-height: 22px;
  }

  .description {
    font-size: 13px;
  }

  .google-button {
    font-size: 13px;
    min-width: 180px;
    height: 36px;
  }
}

/* Large desktop displays */
@media (min-width: 1440px) {
  .card {
    max-width: 480px;
    padding: 48px;
  }

  .title {
    font-size: 28px;
    line-height: 36px;
  }

  .description {
    font-size: 16px;
  }

  .google-button {
    height: 44px;
    font-size: 15px;
    padding: 0 28px;
  }
}

/* Ultra-wide displays */
@media (min-width: 1920px) {
  .container {
    padding: 3rem;
  }

  .card {
    max-width: 500px;
    padding: 56px;
  }

  .logo:first-child {
    width: 56px;
    height: 56px;
  }

  .logo:last-child {
    width: 84px;
    height: 84px;
  }
}
