:root {
  --border-radius: 8px;
  --color-primary: #0d96ff;
}

@font-face {
  font-display: swap;
  font-family: OpenSans;
  src:  url('https://static.animalequality.org/font/opensans/400.woff2') format('woff2'),
    url('https://static.animalequality.org/font/opensans/400.woff') format('woff'),
    url('https://static.animalequality.org/font/opensans/400.ttf') format('truetype');
}

body {
  color: #131313;
  font-family: OpenSans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body * {
  box-sizing: border-box;
}

.login-container {
  max-width: 450px;
  margin: 100px auto;
  padding: 1rem;
  text-align: center;
}

hr {
  background-color: #ECECEC;
  border: 0;
  margin: 0;
  height: 1px;
}

.logo-animala-vision {
  width: 100%;
}

.subline {
  margin: 1rem 0 1.75rem;
  font-size: 1.125rem;
}

.ae-logo {
  max-width: 200px;
}

.form-group {
  margin-top: 2.25rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: .5rem;
}

.divider-label {
  background-color: #fff;
  display: inline-block;
  padding: .5rem .75rem;
  transform: translateY(-2px);
  margin-top: -5px;
}

.google-btn,
.input[type="email"] {
  background-color: #fff;
  border: solid 1px #D5D7DA;
  width: 100%;
  padding: 12px;
  border-radius: var(--border-radius);
  cursor: pointer;
}

.google-btn {
  align-items: center;
  color: #414651;
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  text-decoration: none;
  width: 100%;
}

.google-btn svg {
  margin-right: 1rem;
}

input[type="email"] {
  width: 100%;
  padding: .75rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1.125rem;
}

.submit-btn {
  margin: 2rem 0 1.5rem;
  width: 100%;
  padding: 1rem;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 16px;
  cursor: pointer;
}

.footer {
  margin-top: 2rem;
  text-align: center;
}

.how-to-access-link {
  color: var(--color-primary);
  cursor: pointer;
  text-decoration: underline;
}

/* Modal styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  position: relative;
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #333;
}

.modal-body {
  color: #555;
  line-height: 1.6;
}

.modal-body p {
  margin: 0 0 15px 0;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

@media screen and (min-width: 768px) {
  .form-group {
    margin-top: 5.25rem;
    text-align: left;
  }
}
