/* ------------------------------------------------------ */
/*                          LOGIN                          */
/* ------------------------------------------------------ */

.login-wrapper {
    height: 100vh;
    display: flex;
    justify-content: center; 
    align-items: flex-start;
    background: #0b1220;
    padding: 0px 20px 0px 20px;
}

.card-login {
    width: 100%;
    max-width: 350px;
    background: radial-gradient(600px 200px at -10% -10%, rgba(124, 58, 237, .15), transparent 40%), var(--card);
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, .25);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 80px;
}

.card-login h1 {
    margin-bottom: 20px;
    font-size: 22px;
}

.error-login {
    margin-bottom: 10px;
}

.form-login {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.form-login input {
    width: 100%;
    max-width: 280px;
}

.input-login {
    width: 80%;
}

.g-recaptcha {
    transform: scale(0.95);
    transform-origin: center;
}

.btn.full-width-btn {
    max-width: 280px;
    width: 100%;
}


/* ------------------------------------------------------ */
/*                          MAIN                          */
/* ------------------------------------------------------ */


.container {
    max-width: 100%;
    margin: 80px auto;
    padding: 0 10px
}

.header {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px
}

h1 {
    font-size: 18px;
    margin: 0;
    letter-spacing: .5px
}

.card {
    background: radial-gradient(600px 200px at -10% -10%, rgba(124, 58, 237, .15), transparent 40%), var(--card);
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, .25)
}

.grid {
    display: grid;
    gap: 10px
}

.btn {
    appearance: none;
    border: 1px solid #334155;
    background: #1f2937;
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: .2s
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .25)
}

.btn:disabled {
    background: #2d3748;
    border-color: #4a5568;
    color: #ffffff;
    opacity: 0.6;
    cursor: not-allowed
}

.btn:disabled:hover {
    transform: none;
    box-shadow: none
}

.btn.primary {
    background: linear-gradient(135deg, var(--pri), var(--pri-2));
    border-color: transparent
}

.btn.success {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    border-color: transparent
}

.btn.warn {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    border-color: transparent;
    color: #111
}

.btn.ghost {
    background: transparent;
    text-decoration: none
}

.title {
    font-weight: 700;
    opacity: .95;
    font-size: 12px
}

.muted {
    color: var(--soft);
    font-size: 10px
}

.row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap
}

input,
select {
    background: #0b1220;
    border: 1px solid #263041;
    color: #fff;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 12px;
    width: 40%;
}

input:focus {
    outline: 2px solid var(--pri-2);
}

table {
    width: 100%;
    border-collapse: collapse
}

th,
td {
    padding: 6px;
    border-bottom: 1px solid #1f2937;
    font-size: 11px
}

th {
    color: #cbd5e1;
    text-align: left
}

.chantiers-table th:nth-child(1),
.chantiers-table td:nth-child(1) {
    width: 40%
}

.chantiers-table th:nth-child(2),
.chantiers-table td:nth-child(2) {
    width: 40%
}

.chantiers-table th:nth-child(3),
.chantiers-table td:nth-child(3) {
    width: 40%
}

.chantiers-table th:nth-child(4),
.chantiers-table td:nth-child(4) {
    width: 5%
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 6px;
    border-radius: 999px;
    background: #101826;
    border: 1px solid #263041;
    font-size: 10px
}

.money {
    font-size: 20px;
    font-weight: 800
}

.error {
    background: #2b0f13;
    border: 1px solid #7f1d1d;
    color: #fecaca;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px
}

.success {
    background: #0f2b1a;
    border: 1px solid #14532d;
    color: #dcfce7;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px
}

.kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px
}

.kpi {
    background: #0b1220;
    border: 1px solid #263041;
    border-radius: 10px;
    padding: 10px
}

.kpi .label {
    color: #a3a3a3;
    font-size: 9px
}

.kpi .value {
    font-size: 14px;
    font-weight: 800
}

.full-width-btn {
    width: 100%;
    margin-top: 10px
}