* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #1a1b22;
}

/* Fundal DOAR pe pagina Panel */
body.panel {
    background-image: url('bgd.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
body.home { background-image: url('alta-poza.jpg'); }
body.shop { background-image: url('alta-poza.jpg'); }

.page-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  
  /* Fundal semi-transparent */
  background: rgba(255, 255, 255, 0.08); 
  
  /* Blur și saturație pentru efectul de sticlă */
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); /* Pentru Safari */
  
  /* Margini și lumini pentru a simula muchia de sticlă */
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.25), /* Linie speculară sus */
    0 8px 32px rgba(0, 0, 0, 0.35); /* Umbră pentru adâncime */
}


.header-inner {
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;    /* ← needed for absolute nav on mobile */
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  height: 54px;
  width: auto;
  display: block;
}

.logo-text {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
  letter-spacing: -0.04em;
  line-height: 1;
}

.main-nav {
  display: flex;
  gap: 8px;              /* small — padding handles the spacing */
  
}

/* --- link-uri normale --- */
.main-nav a {
  position: relative;
  padding: 8px 16px;
  border-bottom: 0;
  text-decoration: none;
  color: #9ca3af;           /* gri când nu e hover/activ */
  font-size: 0.95rem;
  font-weight: 750;
  transition: color .18s;
}

.main-nav a:hover {
  color: #ffffff;           /* alb la hover */
}

/* --- linia scurtă --- */
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 2px;
  background: #2382ff;
  left: 16px;               /* lasă 16px gol în stânga */
  right: 16px;              /* lasă 16px gol în dreapta */
  border-radius: 999px;     /* capete rotunjite */
  transform: scaleX(0);
  transform-origin: center; /* crește din centru spre margini */
  transition: transform .18s;
}

/* --- linia apare la hover --- */
.main-nav a:hover::after {
  transform: scaleX(1);
}

/* --- pagina curentă: alb + linie permanentă --- */
.main-nav a.active {
  color: #ffffff;
}

.main-nav a.active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;         /* hidden on desktop */
  background: none;
  border: 0;
  font-size: 1.6rem;
  line-height: 1;
  color: #fff;           /* match your text color */
  cursor: pointer;
  padding: 8px 12px;
  margin-left: auto;     /* pushes it to the right */
  margin-right: 12px;
}

@media (max-width: 700px) {

  .menu-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;

    flex-direction: column;
    gap: 0;

  /* Fundal semi-transparent */
  background: rgba(255, 255, 255, 0.08); 
  
  /* Blur și saturație pentru efectul de sticlă */
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); /* Pentru Safari */
  
  /* Margini și lumini pentru a simula muchia de sticlă */
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.25), /* Linie speculară sus */
    0 8px 32px rgba(0, 0, 0, 0.35); /* Umbră pentru adâncime */
  }

  .main-nav.open { display: flex; }

  .main-nav a {
      padding: 14px 24px;
    color: #d1d5db;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;   /* fără fundal pe link */
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .main-nav a:hover,
  .main-nav a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
  }

  /* linia de sub text — ascunsă pe mobil */
  .main-nav a::after {
    display: none;
  }
}
 /* PANEL LOGIN */

.login-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Îl trage înapoi exact la jumătate */
    display: flex;
    width: 1040px;
    height: 520px;
    background-color: hwb(0 0% 100% / 0.9);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    overflow: visible;
}

/* --- PANOUL DIN STÂNGA --- */
.left-panel {
    width: 40%;
    background-color: #2382ff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    border-radius: 12px 0 0 12px;
    text-align: center;
    color: #ffffff;
}

.left-panel .logo {
    width: 110px;
    height: 110px;
    margin-bottom: 25px;
    border-radius: 50%; /* Face poza rotundă */
    object-fit: cover;
}

.left-panel h2 {
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.left-panel p {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
    font-weight: 300;
}

/* --- PANOUL DIN DREAPTA --- */
.right-panel {
    width: 60%;
    padding: 60px;
    overflow: 0 16px 16px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;

}

.right-panel h1 {
    font-size: 26px;
    margin-bottom: 8px;
    font-weight: 750;
}

.right-panel .subtitle {
    font-size: 14px;
    color: #8b92a5; /* Gri deschis */
    margin-bottom: 40px;
    font-weight: 300;
}

/* --- FORMULARUL --- */
.input-group {
    margin-bottom: 22px;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 750;
    margin-bottom: 8px;
    color: #d1d5db;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    background-color: #2b2d35;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #ffffff;
    font-family: inherit; /* Folosește fontul setat pe body */
    font-size: 14px;
    font-weight: 700;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border: 1px solid #2382ff;
    background-color: #212533;
}

.input-group input::placeholder {
    color: #ffffff80;
}

/* --- BUTONUL DE LOGIN --- */
.login-btn {
    width: 100%;
    padding: 15px;
    background-color: #2382ff;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px; /* Spațiu adăugat după ce am scos captcha */
    margin-bottom: 15px;
}

.login-btn:hover {
    background-color: #2382ff;
}

/* --- LINK-UL DE UITAT PAROLA --- */
.forgot-password {
    color: #2382ff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #2382ff;
    text-decoration: underline;
}

/* Ne asigurăm că input-group poate ține elemente poziționate absolut */
.input-group {
    position: relative; 
    margin-bottom: 25px; /* Lăsăm spațiu ca să nu se suprapună casuța peste următorul input */
}

/* Stilul cutiei de eroare (Tooltip) */
.error-tooltip {
    position: absolute;
    top: 100%;
    left: 0; 
    margin-top: 12px;
    background-color: #2b2d35; 
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    
    /* AICI ESTE SECRETUL PENTRU A IEȘI DIN CASUȚĂ */
    white-space: nowrap; /* Forțează textul pe un singur rând, lung */
    width: max-content;  /* Lățimea se adaptează exact cât textul */
    max-width: none;     /* Șterge orice limită de lățime (să nu se oprească în input) */
    
    display: none; 
    align-items: center; /* Aliniază iconița și textul frumos pe centru */
    gap: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6); 
    z-index: 999; /* Să fie sigur deasupra tuturor elementelor */
    animation: fadeInDown 0.2s ease-out; 
}

/* Săgeata rămâne aliniată în stânga */
.error-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 15px;
    border-width: 0 6px 6px 6px;
    border-style: solid;
    border-color: transparent transparent #2b2d35 transparent;
}

/* Iconița - o aliniem puțin mai bine pe verticală când textul e lung */
.error-icon {
    background-color: hwb(0 20% 0% / 0.80);
    color: #ffffff;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 3px;
    font-weight: 900;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 1px; /* Ajustare fină */
}

/* Stilul input-ului când este eroare */
.input-group input.input-error {
    border: 1px solid #ff4d4f;
    background-color: rgba(255, 77, 80, 0.25);
}

/* Animația de apariție */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- RESPONSIVE (PENTRU TELEFOANE / TABLETE) --- */
@media (max-width: 850px) {
    .login-container {
        flex-direction: column;
        width: 90%;
        height: auto;
    }
    .left-panel, .right-panel {
        width: 100%;
        padding: 40px 20px;
        border-radius: 16px 16px 0 0; 
    }
    .right-panel {
        padding: 40px 30px;
        border-radius: 16px 16px 0 0; 
    }
}
