@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500&family=Outfit:wght@600&display=swap');

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

html, body {
  height: 100%;
  font-family: 'DM Sans', sans-serif;
  background: #07091A;
  color: #E8EAF2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

/* Decorative gradient orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(74, 127, 255, 0.15) 0%, transparent 70%);
  top: -200px;
  left: -100px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  bottom: -150px;
  right: -100px;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(74, 127, 255, 0.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Main content */
.container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Lock icon box */
.lock-icon-box {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(74, 127, 255, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lock-icon-box img {
  width: 40px;
  height: 40px;
}

/* Title */
.title {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 36px;
  color: #E8EAF2;
  letter-spacing: -0.02em;
}

/* Subtitle */
.subtitle {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #6B7494;
}

/* Card */
.card {
  width: 384px;
  max-width: 90vw;
  padding: 32px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(13, 17, 40, 1) 0%, rgba(9, 13, 31, 1) 100%);
  box-shadow: 0px 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(74, 127, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.card-header {
  text-align: center;
}

.card-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #E8EAF2;
}

.card-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #6B7494;
  margin-top: 4px;
}

/* Google button */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 320px;
  max-width: 100%;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-google:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-google img {
  width: 20px;
  height: 20px;
}

.btn-google span {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #E8EAF2;
}

/* Security note */
.security-note {
  display: flex;
  align-items: center;
  gap: 6px;
}

.security-note img {
  width: 14px;
  height: 14px;
}

.security-note span {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #6B7494;
}

/* Download button */
.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 320px;
  max-width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(74, 127, 255, 1) 0%, rgba(58, 111, 232, 1) 100%);
  box-shadow: 0px 4px 24px rgba(74, 127, 255, 0.3);
  border: none;
  border-radius: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-download:hover {
  opacity: 0.9;
}

.btn-download img {
  width: 20px;
  height: 20px;
}

.btn-download span {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #ffffff;
}

/* Metadata section */
.metadata {
  width: 100%;
  border-top: 1px solid rgba(74, 127, 255, 0.12);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.metadata-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metadata-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #6B7494;
}

.metadata-value {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #E8EAF2;
}

/* User info (top-right on download page) */
.top-bar {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
}

.user-pill img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.user-pill span {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #E8EAF2;
}

.btn-logout {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-logout:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-logout img {
  width: 18px;
  height: 18px;
}

/* Responsive */
@media (max-width: 480px) {
  .card {
    width: 100%;
    padding: 24px;
  }

  .btn-google,
  .btn-download {
    width: 100%;
  }

  .top-bar {
    top: 16px;
    right: 16px;
  }
}

/* Login form */
.login-form {
  width: 320px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  width: 100%;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #E8EAF2;
  outline: none;
  transition: border-color 0.2s;
}

.form-input::placeholder {
  color: #6B7494;
}

.form-input:focus {
  border-color: rgba(74, 127, 255, 0.5);
}

.btn-login {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(74, 127, 255, 1) 0%, rgba(58, 111, 232, 1) 100%);
  box-shadow: 0px 4px 24px rgba(74, 127, 255, 0.3);
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 4px;
}

.btn-login:hover {
  opacity: 0.9;
}

.btn-login span {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #ffffff;
}

.error-message {
  width: 320px;
  max-width: 100%;
  padding: 10px 14px;
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.3);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #FF6B6B;
  text-align: center;
}
