/* ======================================================
   LOGIN INTRANET DOMENJÓ
   Estils només per a la pantalla de login
   ====================================================== */

/* 1. Layout general: centrar targeta sobre fons corporatiu */
.intranet-body {
    min-height: 100vh;
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #f7f4ec;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Fons tipus DOMENJÓ, foscos amb degradat daurat */
    background:
        radial-gradient(circle at top left, #2b1a08 0, transparent 55%),
        radial-gradient(circle at bottom right, #3b260c 0, transparent 60%),
        #050505;
}

/* 2. Targeta de login */
.login-card {
    background: rgba(0, 0, 0, 0.92);
    border-radius: 18px;
    padding: 2.5rem 3rem;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
}

/* 3. Capçalera marca + logo */
.login-brand {
    display: flex;
    flex-direction: column;       /* logo a sobre del text */
    align-items: center;          /* centrat horitzontalment */
    gap: 0.8rem;
    margin-bottom: 2rem;
    text-align: center;           /* textos centrats */
}


.login-logo-img {
    width: 96px;
    height: 96px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 0 0 2px #f7f4ec;
}


.login-title {
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}


.login-subtitle {
    margin: 0.15rem 0 0;
    font-size: 0.95rem;
    color: #d0c7b5;
}

/* 4. Formulari */
.form-label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: #f7f4ec;
}

.form-input {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #3a3022;
    background: #111;
    color: #f7f4ec;
    font-size: 0.95rem;
    outline: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease;
}

.form-input:focus {
    border-color: #c7983a;      /* daurat DOMENJÓ */
    background-color: #18110a;
    box-shadow: 0 0 0 1px #c7983a;
}

.login-card form > div + div {
    margin-top: 1rem;
}

/* 5. Botó principal */
.btn-primary {
    margin-top: 1.8rem;
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;

    background: linear-gradient(135deg, #c7983a, #e2b758);
    color: #1b1309;

    transition:
        transform 0.12s ease-out,
        box-shadow 0.12s ease-out,
        opacity 0.12s ease-out;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.65);
    opacity: 0.97;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

/* 6. Caixa d’errors */
.alert-error {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: rgba(148, 32, 32, 0.95);
    color: #fff;
    font-size: 0.85rem;
}

/* 7. Responsive mòbil */
@media (max-width: 640px) {
    .login-card {
        margin: 1.25rem;
        padding: 1.75rem 1.5rem;
    }

    .login-title {
        font-size: 1.2rem;
    }
}
