<template>
  <div class="login-overlay">
    <div class="login-card">
      <img src="/images/logo.svg" alt="Navi" class="login-logo" />
      <h1 class="login-title">Welcome to Navi</h1>
      <p class="login-subtitle">Your personal AI assistant</p>
      <GnButton variant="primary" class="login-btn" icon="ph ph-sign-in" @click="login">
        Login with GNEXUS
      </GnButton>
    </div>
  </div>
</template>

<script setup>
function login() {
  window.location.href = '/auth/login'
}
</script>

<style scoped>
.login-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  z-index: 9999;
}

.login-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 48px 40px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  max-width: 360px;
  width: 90%;
}

.login-logo {
  width: 64px;
  height: 64px;
}

.login-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
}

.login-subtitle {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin: 0;
}

.login-btn {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}
</style>
