@import url('theme.css');

body {
  font-family: 'Manrope', sans-serif;
  height: 100vh;
  margin: 0;
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 40px 36px;
  border-radius: var(--radius-xl);
  background: var(--bg-gradient-2);
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow-lg);
  text-align: center;
  backdrop-filter: blur(10px);
}

.legal-card {
  width: 100%;
  max-width: 800px;
  padding: 40px 36px;
  margin: 40px 20px;
  border-radius: var(--radius-xl);
  background: var(--bg-gradient-2);
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow-lg);
  backdrop-filter: blur(10px);
}

.legal-content {
  text-align: left;
  margin-top: 30px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.legal-content h2 {
  color: var(--text-primary);
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content p {
  margin-bottom: 1rem;
}

.legal-footer {
  margin-top: 30px;
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand {
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  color: var(--text-primary);
  opacity: 0.9;
}

h1 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.btn-google {
  background: var(--text-primary);
  color: var(--bg-dark);
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  transition: all .2s ease;
  width: 100%;
}

.btn-google:hover {
  background: var(--text-secondary);
  transform: translateY(-1px);
}

.terms {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 18px;
}

.terms a {
  color: var(--primary);
  text-decoration: none;
}

.terms a:hover {
  text-decoration: underline;
}

.secure {
  margin-top: 22px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: 1px;
}

.secure::before {
  content: 'lock';
  font-family: 'Material Symbols Outlined';
}

/* Loading Block */
#loading-block {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255,255,255,0.1);
  border-left-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}



.logo-backcard-floating {
    width: 280px;
    height: auto;
    z-index: -1;
    pointer-events: none;
    position: absolute;
    top: -20%;
    right: -36%;
    transform-origin: center;
    transform: rotate(40deg);
    animation: logo-shake 4s infinite;
    animation-delay: 0.9s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: ease-in-out;
}

@keyframes logo-shake {
  0%, 100% { transform: rotate(40deg); }
  10%, 30%, 50%, 70%, 90% { transform: rotate(40deg); }
  20%, 40%, 60%, 80% { transform: rotate(45deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .logo-backcard-floating {
    width: 180px;
    top: -15%;
    right: -30%;
    transform: rotate(35deg);
  }
  
  @keyframes logo-shake {
    0%, 100% { transform: rotate(35deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(35deg); }
    20%, 40%, 60%, 80% { transform: rotate(40deg); }
  }
}

@media (max-width: 480px) {
  .logo-backcard-floating {
    width: 240px;
    top: -26%;
    right: -20%;
    transform: rotate(30deg);
  }
  
  @keyframes logo-shake {
    0%, 100% { transform: rotate(30deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(30deg); }
    20%, 40%, 60%, 80% { transform: rotate(35deg); }
  }
}
