/* Стили базовые для модальных окон — не затрагивают основной сайт */
.modal {
  display: none;               /* Скрыто по умолчанию */
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);  /* Затемняющий фон */
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  color: #000;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-header h2 {
  margin: 0;
}

.close {
  cursor: pointer;
  font-size: 24px;
  font-weight: bold;
}

.modal-body input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

/* Кнопка для входа/регистрации через Google */
.google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #444;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin: 12px 0;
  cursor: pointer;
  font-size: 16px;
  padding: 10px;
}

/* Если потребуется иконка */
.google-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

/* Основная кнопка (Sign in, Create account) */
.main-btn {
  width: 100%;
  padding: 10px;
  background: #4285f4;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 1rem;
}

/* Ссылки для переключения между модальными окнами */
.switch-link {
  text-align: center;
  margin-top: 8px;
}

.switch-link a {
  color: #4285f4;
  text-decoration: none;
  font-weight: 500;
}

.switch-link a:hover {
  text-decoration: underline;
}
