/* login.css === MyFloow Login (split-screen, viewport fit, image contain) === */

:root {
  --floow-blue: #0084ff;
  --floow-blue-dark: #0066cc;
  --floow-cyan: #06b6d4;
  --floow-dark: #1a1a2e;
  --floow-gray: #65676b;
  --floow-light: #f0f2f5;
  --floow-success: #16a34a;
  --radius-card: 20px;
  --radius-img: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

body {
  background: #f0f2f5;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* === Override base.css === */
.login-app {
  max-width: none !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 0 !important;
  background: #f0f2f5 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* === Carte split-screen === */
.login-card {
  width: 100%;
  max-width: 1100px;
  height: 100%;
  max-height: 700px;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  animation: cardSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === COLONNE GAUCHE : Visual === */
.login-visual {
  position: relative;
  padding: 16px;
  display: flex;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #faf5ff 100%);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius-img);
  display: block;
}

/* === COLONNE DROITE : Content avec distribution dynamique === */
.login-content {
  padding: 28px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  min-height: 0;
  overflow-y: auto;
}

/* === Logo Block (dynamique en haut à droite) === */
.logo-block {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: flex-end;
  flex-shrink: 0;
}

.logo-block .brand-logo {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 4px 10px rgba(0, 132, 255, 0.25));
}

.logo-text {
  font-size: 17px;
  color: var(--floow-dark);
  font-weight: 500;
  letter-spacing: -0.3px;
}

.logo-text strong {
  font-weight: 800;
  color: var(--floow-blue);
}

/* === Content Main (centre, flex avec gap uniforme) === */
.content-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.welcome-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--floow-dark);
  margin: 0;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.welcome-sub {
  font-size: 15px;
  color: var(--floow-gray);
  margin: -12px 0 0;
}

/* === Section CONNEXION === */
.connexion-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--floow-gray);
  margin: 0;
}

.google-btn-container {
  display: flex;
  justify-content: center;
  transition: transform 0.2s ease;
}

.google-btn-container:hover {
  transform: translateY(-1px);
}

/* === Section ACCÈS SÉCURISÉ === */
.security-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.security-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.security-divider .line {
  flex: 1 1 auto;
  display: block;
  height: 1px;
  background: #e5e7eb;
  min-width: 20px;
}

.security-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--floow-gray);
  white-space: nowrap;
}

.security-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--floow-success);
  font-weight: 600;
  margin: 0;
}

/* === Bloc bas (signup + copyright) === */
.signup-note {
  font-size: 13px;
  color: var(--floow-gray);
  text-align: center;
  margin: 0 0 10px;
}

.signup-link {
  color: var(--floow-blue);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.signup-link:hover {
  color: var(--floow-blue-dark);
  text-decoration: underline;
}

.copyright {
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
  margin: 0;
  flex-shrink: 0;
}

/* === Responsive Tablet === */
@media (max-width: 900px) {
  html, body { overflow: auto; height: auto; }
  .login-app {
    height: auto !important;
    min-height: 100vh !important;
    padding: 16px;
  }
  .login-card {
    grid-template-columns: 1fr;
    max-width: 500px;
    height: auto;
    max-height: none;
  }
  .login-visual { padding: 12px; }
  .hero-image {
    height: 240px;
    max-height: 280px;
  }
  .login-content {
    padding: 24px 28px;
    overflow-y: visible;
    gap: 20px;
  }
  .welcome-title { font-size: 24px; }
}

/* === Responsive Mobile === */
@media (max-width: 480px) {
  .login-app { padding: 0; }
  .login-card {
    border-radius: 0;
    min-height: 100vh;
    box-shadow: none;
  }
  .login-content { padding: 20px; }
  .welcome-title { font-size: 22px; }
  .hero-image { height: 200px; }
}

/* === Très petites hauteurs d'écran === */
@media (max-height: 650px) and (min-width: 901px) {
  .login-card { max-height: calc(100vh - 24px); }
  .login-content { padding: 20px 36px; gap: 12px; }
  .welcome-title { font-size: 24px; }
  .welcome-sub { font-size: 14px; }
  .logo-block .brand-logo { width: 36px; height: 36px; }
}
