:root {
  --primary: #7C3AED; /* Violet FlipIQ */
  --text-main: #0B1220;
  --text-sec: #6B7280;
  --bg-input: #FFFFFF;
  --border-input: rgba(0,0,0,0.15);
  --font-main: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background-color: #f0f2f5;
  height: 100vh;
  overflow: hidden; 
  position: relative;
}

/* Image de fond */
.bg-image {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('../img/img1.png'); 
  background-size: cover;
  background-position: center;
  z-index: -1;
}

/* Bouton Langue Flottant */
.lang-fab {
  position: absolute;
  top: 80px; /* Décalé pour être sous le header */
  right: 14px;
  z-index: 10;
  background-color: #0B1220;
  color: #fff;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Conteneur semi-transparent blanc */
.login-container {
  height: 100%;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.92);
  display: flex;
  flex-direction: column;
  overflow-y: auto; 
  padding-top: 60px; /* Place pour le header fixe */
}

.login-content {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hero GIF */
.hero-gif-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.hero-gif {
  height: 200px;
  width: auto;
  object-fit: contain;
}

/* Slogan */
.slogan {
  text-align: center;
  font-size: 22px;
  color: var(--text-main);
  margin-bottom: 32px;
  font-weight: 700;
  line-height: 1.3;
}

/* Formulaire */
.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Inputs style React Native */
.rn-input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--border-input);
  background-color: var(--bg-input);
  padding: 0 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-family: var(--font-main);
  font-size: 16px;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s;
}

.rn-input:focus {
  border-color: var(--primary);
}

/* Primary Button */
.rn-button {
  background-color: var(--primary);
  height: 50px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.rn-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-text {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

/* Message Erreur */
.form-message {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
  min-height: 20px;
  padding: 5px;
  border-radius: 4px;
}
.form-message.error { color: #dc2626; background-color: #fee2e2; }
.form-message.success { color: #16a34a; background-color: #dcfce7; }

/* Separator OR */
.or-row {
  display: flex;
  align-items: center;
  margin: 24px 0;
}

.line {
  flex: 1;
  height: 1px;
  background-color: rgba(0,0,0,0.12);
}

.or-text {
  margin: 0 10px;
  color: var(--text-sec);
  font-size: 14px;
}

/* Google Button */
.google-btn {
  height: 50px;
  border-radius: 8px;
  background-color: #fff;
  border: 1.5px solid rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.google-btn:hover {
  background-color: #f9fafb;
}

.g-logo {
  width: 18px;
  height: 18px;
}

.g-text {
  font-weight: 700;
  color: #111827;
  font-size: 15px;
}

/* Link Footer */
.link-text {
  text-align: center;
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-main);
}

.link {
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
}
