body {
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("/icons/logo_centered.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 150%;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: -1; /* Keep it behind content */
}


/* Auth pages: centered card + inputs styled to match the app */
.auth-wrapper {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 100vh;
    padding: 24px;
    box-sizing: border-box;
}

.auth-card {
    width: 100%;
    max-width: 560px;
    border-radius: var(--radius);
}

.auth-header {
    margin-bottom: 14px;
}

.auth-title {
    margin: 0 0 6px;
    color: var(--accent);
    font-weight: 800;
    letter-spacing: 0.2px;
    font-size: 1.35rem;
}

.auth-subtitle {
    color: var(--muted);
    margin: 0;
    font-size: 0.95rem;
}

/* Form fields */
.auth-form .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 12px 0;
}

.auth-form label {
    font-weight: 600;
    color: #e6e6e6;
    letter-spacing: 0.15px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    background: rgba(255, 255, 255, 0.06);
    color: #e6e6e6;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.65rem 0.8rem;
    min-height: 44px;
    line-height: 1.35;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    font-size: 16px;
    box-sizing: border-box;
}

.auth-form input::placeholder {
    color: rgba(255,255,255,0.55);
}

.auth-form input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(199, 161, 91, 0.15);
    outline: none;
}

/* Error and hint text */
.auth-form .form-error {
    color: #e3342f;
    background: rgba(227, 52, 47, 0.12);
    border: 1px solid rgba(227, 52, 47, 0.28);
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.92rem;
    margin: 10px 0 2px;
}

.auth-form .help-text {
    color: var(--muted);
    font-size: 0.85rem;
}

/* Actions */
.auth-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.auth-actions .btn-primary {
    background: var(--accent);
    color: #141a26;
    border: none;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.02s ease;
}

.auth-actions .btn-primary:hover {
    filter: brightness(1.05);
}

.auth-actions .link {
    color: var(--muted);
    text-decoration: none;
}

.auth-actions .link:hover {
    color: var(--accent);
}

/* Optional: a subtle divider inside the card */
.auth-divider {
    height: 1px;
    background: rgba(199, 161, 91, 0.12);
    border: none;
    margin: 14px 0;
}

/* Keep card look consistent */
.auth-card.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.2));
    border: 1px solid rgba(199, 161, 91, 0.1);
    padding: calc(var(--card-padding) + 4px);
}