/* ========== Login Page Styles ========== */
@import url('./styles.css');

/* ========== Login-specific styles ========== */

/* Container size for login page */
.login-container{
  background:var(--card);
  border-radius:var(--radius-lg);
  padding:32px 24px 24px;
  width:min(var(--container-width-sm), 90%);
  margin:32px auto;
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:20px;
  text-align:center;
}

/* Header section with logo and title */
.header-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin-bottom: 8px;
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 4px;
}

.logo-container .logo-img {
    height: 48px;
    width: auto;
    transition: transform 0.2s ease;
}

.logo-container .logo-img:hover {
    transform: scale(1.05);
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Title styling */
h1 {
    color: var(--text);
    margin: 0;
    font-size: clamp(1.6rem, 1.8rem + 0.4vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
}

.subtitle {
    color: var(--muted);
    margin: 0;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
    max-width: 400px;
}

/* Auth section */
.auth-section {
    display: flex;
    flex-direction: column;
    align-items: center;
      text-align: center;
}


.welcome-text {
    color: var(--text);
    margin: 0;
    line-height: 1.6;
    font-size: 0.85rem;
    max-width: 500px;
    margin-bottom:16px;
}

/* Google Sign-In Button */
.google-btn {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 24px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin: 8px 0;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    outline: none;
}

.google-btn:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--ring);
    transform: translateY(-1px);
}

.google-btn:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--ring);
}

.google-btn:active {
    transform: translateY(0);
    background: var(--bg);
}

.google-icon {
    width: 20px;
    height: 20px;
}

/* Error message styling */
.error-message {
    color: #d64545;
    margin-top: 12px;
    padding: 12px 16px;
    background: #fef5f5;
    border: 1px solid #d64545;
    border-radius: var(--radius-sm);
    display: none;
    width: 100%;
    max-width: 420px;
    font-size: 0.9rem;
}

/* Features section */
.features {
    text-align: left;
    background: var(--bg);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    width: 100%;
    max-width: 420px;
}

.features h3 {
    color: var(--text);
    margin-bottom: 16px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top:0px!important;
}

.features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.features li {
    padding: 0;
    color: var(--text);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features li::before {
    content: "✓";
    color: var(--accent);
    font-weight: bold;
    font-size: 0.9rem;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Privacy text */
.privacy-text {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 20px;
    line-height: 1.4;
    max-width: 420px;
}

/* ====== Login-specific responsive ====== */
@media (max-width: 1024px){
  .login-container{ width:min(520px, 94%); padding:28px 22px 22px }
}
@media (max-width: 768px){
  .features h3
  .login-container{ width:94%; padding:24px 18px 18px; margin:24px auto }
  .header-section{ gap:12px; margin-bottom:6px }
  .logo-container .logo-img{ height:44px }
  h1{ font-size:clamp(1.5rem, 1.7rem + 0.3vw, 1.8rem) }
}

@media (max-width: 520px){
  .login-container{ padding:20px 16px 16px }
  .header-section{ gap:10px; margin-bottom:4px }
  .logo-container .logo-img{ height:40px }
  .welcome-text{ font-size:0.9rem }
  .google-btn{ padding:10px 20px; font-size:0.95rem }
  .subtitle{ font-size:0.9rem }
}

/* Motion safe */
@media (prefers-reduced-motion: reduce){
  .google-btn{ transition:none }
}

/* Background pattern global */
body {
  --s: 200px; /* taille du motif */
  --c1: #FA682E; /* ton orange */
  --c2: #140600; /* ton noir profond */

  --_g: var(--c2) 4% 14%, var(--c1) 14% 24%, var(--c2) 22% 34%,
    var(--c1) 34% 44%, var(--c2) 44% 56%, var(--c1) 56% 66%, var(--c2) 66% 76%,
    var(--c1) 76% 86%, var(--c2) 86% 96%;

  background:
    radial-gradient(
      100% 100% at 100% 0,
      var(--c1) 4%,
      var(--_g),
      #0008 96%,
      #0000
    ),
    radial-gradient(
      100% 100% at 0 100%,
      #0000,
      #0008 4%,
      var(--_g),
      var(--c1) 96%
    )
    var(--c1);

  background-size: var(--s) var(--s);
}

