@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
    /* -- CULORI SPECIFICE LOGIN -- */
    --bg-body: #151515;       /* Dark Background */
    --text-main: #111827;
    --text-muted: #6b7280;
    
    --eco-green: #2ecc71;
    --repower-red: #e74c3c;
    
    /* Nuante subtile pentru carduri */
    --card-green-tint: #f0fdf4;
    --card-red-tint: #fef2f2;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    
    /* PADDING UPDATE: 100px sus (80px header + 20px spatiu) */
    padding: 100px 20px 20px 20px;
}

/* --- WRAPPER & BRAND --- */
.login-wrapper {
    width: 100%;
    max-width: 960px; /* Putin mai lat pentru aspect panoramic */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    animation: fadeIn 0.8s ease-out;
}

.login-brand { text-align: center; color: #fff; margin-bottom: 10px; }
.login-brand h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 5px; letter-spacing: -0.5px; }
.login-brand p { color: #888; font-size: 1rem; opacity: 0.8; }

/* --- CONTAINER CARDURI --- */
.login-container {
    display: flex;
    gap: 30px;
    width: 100%;
    perspective: 1000px; /* Pentru un mic efect 3D */
}

.login-card {
    flex: 1;
    background: #ffffff;
    padding: 45px 40px;
    border-radius: 24px;
    /* Umbra puternica pentru efectul de "floating" pe fundal negru */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7); 
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.login-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.8);
    z-index: 2;
}

/* --- CARD VERDE (STANGA) --- */
.card-green {
    /* Fundal foarte subtil verde */
    background: linear-gradient(160deg, #ffffff 0%, var(--card-green-tint) 100%);
    border-top: 5px solid var(--eco-green);
}

/* --- CARD ROSU (DREAPTA) --- */
.card-red {
    /* Fundal foarte subtil rosu */
    background: linear-gradient(160deg, #ffffff 0%, var(--card-red-tint) 100%);
    border-top: 5px solid var(--repower-red);
}

/* --- TYPOGRAPHY & ICONS --- */
.card-header { margin-bottom: 30px; }

.icon-circle {
    width: 56px; height: 56px; border-radius: 16px; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 1.8rem; margin-bottom: 20px;
}

.icon-green { background: rgba(46, 204, 113, 0.15); color: var(--eco-green); }
.icon-red { background: rgba(231, 76, 60, 0.15); color: var(--repower-red); }

.card-header h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; color: #111; }
.card-header p { color: #666; font-size: 0.95rem; line-height: 1.5; }

/* --- INPUTS --- */
.input-group { margin-bottom: 20px; }
.input-group label { 
    display: block; font-size: 0.8rem; font-weight: 700; 
    color: var(--text-muted); margin-bottom: 8px; 
    text-transform: uppercase; letter-spacing: 0.5px; 
}

.input-wrapper { position: relative; }
.input-wrapper i {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%); 
    color: #9ca3af; font-size: 1.3rem; transition: 0.3s;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 16px 16px 50px; /* Spatiu pt icon */
    background: #fff; 
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
    outline: none;
    color: #333;
}

/* Focus States */
.card-green .input-wrapper input:focus { 
    border-color: var(--eco-green); 
    box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.1); 
}
.card-green .input-wrapper input:focus + i { color: var(--eco-green); }

.card-red .input-wrapper input:focus { 
    border-color: var(--repower-red); 
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1); 
}

/* --- BUTTONS --- */
button { cursor: pointer; font-family: inherit; }

.btn-login, .btn-activate {
    width: 100%; padding: 16px; border-radius: 12px; border: none; 
    color: #fff; font-weight: 700; font-size: 1rem; 
    display: flex; align-items: center; justify-content: center; gap: 10px; 
    margin-top: 10px; transition: 0.3s;
}

.btn-login { 
    background: var(--eco-green); 
    box-shadow: 0 10px 20px -5px rgba(46, 204, 113, 0.4); 
}
.btn-login:hover { background: #27ae60; transform: translateY(-2px); }

.btn-activate { 
    background: var(--repower-red); 
    box-shadow: 0 10px 20px -5px rgba(231, 76, 60, 0.4); 
}
.btn-activate:hover { background: #c0392b; transform: translateY(-2px); }

/* --- ALERTS --- */
.msg-box { padding: 15px; border-radius: 10px; font-size: 0.9rem; margin-bottom: 25px; line-height: 1.4; }
.msg-error { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }
.msg-success-green { background: #dcfce7; color: #166534; border-left: 4px solid #22c55e; }
.msg-success-red { background: #fff1f2; color: #9f1239; border-left: 4px solid #f43f5e; }

.info-text { font-size: 0.85rem; color: #777; margin-top: 15px; display: flex; align-items: center; gap: 5px; }

.login-footer { margin-top: 50px; color: #555; font-size: 0.85rem; opacity: 0.6; }

/* --- RESPONSIVE --- */
@media (max-width: 850px) {
    .login-container { flex-direction: column; }
    .login-wrapper { gap: 20px; }
}

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(30px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* --- TOP HEADER BAR (80px) --- */
.top-bar-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    
    /* Inaltime 80px */
    height: 80px; 
    
    /* MODIFICAT: BACKGROUND ECO GREEN GRADIENT */
    background: linear-gradient(to right, #2ecc71, #27ae60);
    
    /* Optional: Bordura fina jos */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px; 
    z-index: 2000; 
}

.top-bar-header img {
    /* Logo-uri mai mari (40px) */
    height: 40px; 
    width: auto;
    display: block;
    /* Adaugam un mic drop-shadow pentru a se vedea bine pe verde */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}