:root {
  --bg: #0E1A2F;
  --card: rgba(16, 24, 40, 0.7);
  --muted: #94A3B8;
  --accent: #3B82F6;
  --accent-hover: #2563EB;
  --text: #F1F5F9;
  --border: rgba(255, 255, 255, 0.1);
  --input-bg: rgba(15, 23, 42, 0.5);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.5;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.container {
  width: 100%;
  max-width: 400px;
  padding: 40px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  text-align: center;
}

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
}

.site-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin-bottom: 20px;
  object-fit: contain;
}

h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #60A5FA, #3B82F6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.content {
  color: var(--muted);
  margin-bottom: 8px;
  font-size: 15px;
}

.connect-form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.connect-form label {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: -8px;
}

.connect-form input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font-size: 15px;
  transition: all 0.2s ease;
}

.connect-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.connect-form button {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.connect-form button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.connect-form button:active {
  transform: translateY(0);
}

/* Style du popup de notification */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 24px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1000;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  border-left: 4px solid #10B981;
}

.notification.error {
  border-left: 4px solid #EF4444;
}

.notification-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.notification-content {
  flex-grow: 1;
}

.notification-title {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 15px;
}

.notification-message {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.4;
}

/* Animation d'entrée/sortie */
@keyframes slideInRight {
  from { transform: translateX(120%); }
  to { transform: translateX(0); }
}

@keyframes slideOutRight {
  from { transform: translateX(0); }
  to { transform: translateX(120%); }
}

/* Masquer le statut par défaut */
.status {
  display: none;
}

.security-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
}

.security-badge svg {
  color: #10B981;
}

.footer {
  margin-top: 40px;
  font-size: 12px;
  color: rgba(148, 163, 184, 0.6);
  text-align: center;
}

/* Animation pour le bouton de connexion */
@keyframes buttonHover {
  0% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
  100% { transform: translateY(0); }
}

.connect-form button:hover {
  animation: buttonHover 0.5s ease;
}

