:root {
    --black: #000000;
    --gold: #926F25;
    --gold-dark: #6D531B;
    --gold-light: #B29A66;
    --white: #FFFFFF;
    --grey-light: #F4F4F4;
    --grey-text: #666666;
    --green-ok: #2E7D32;
    --red-error: #C62828;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #1b1b1b 0, #000 40%, #111 100%);
    color: var(--black);
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
}

.auth-card {
    background: #FFFFFF;
    border-radius: 24px;
    max-width: 520px;
    width: 100%;
    padding: 2.75rem 2.5rem;
    box-shadow:
        0 26px 70px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(0, 0, 0, 0.55);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: none;
}

.auth-inner {
    position: relative;
    z-index: 1;
}

/* ───── Marca DOMENJÓ ───── */

.brand {
    text-align: center;
    margin-bottom: 2.2rem;
}

.brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    background: #111;
    box-shadow: 0 0 0 1px #333;
    gap: 0.75rem;
}

.brand-logo {
    width: 80px;   /* puja-ho a 100x100 si el vols més gran */
    height: 80px;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 0;
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand-text {
    text-align: left;
}

.brand-name {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-dark);
}

.brand-sub {
    font-size: 0.8rem;
    color: var(--grey-text);
}

.brand-bar {
    margin-top: 0.9rem;
    height: 2px;
    width: 64px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin-left: auto;
    margin-right: auto;
}

/* ───── Contingut ───── */

.page-title {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
    text-align: center;
}

.page-subtitle {
    font-size: 0.9rem;
    text-align: center;
    color: var(--grey-text);
    margin-bottom: 1.6rem;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    font-size: 0.82rem;
    margin-bottom: 0.3rem;
    color: var(--grey-text);
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 0.85rem 0.9rem;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
    background-color: #fdfdfd;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 1px rgba(146, 111, 37, 0.35);
    background-color: #fffdf7;
}

/* ───── Botó ───── */

.btn-primary {
    margin-top: 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--white);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.82rem;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.15s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
    filter: brightness(1.04);
}

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

/* ───── Errors ───── */

.error-message {
    background: #fdecea;
    color: var(--red-error);
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    font-size: 0.8rem;
    margin-bottom: 0.9rem;
    border: 1px solid rgba(198, 40, 40, 0.15);
}

.field-error {
    font-size: 0.75rem;
    color: var(--red-error);
    margin-top: 0.2rem;
}

/* ───── Peu ───── */

.auth-footer {
    margin-top: 1.3rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--grey-text);
}

.auth-footer span {
    color: var(--gold-dark);
    font-weight: 500;
}
