/* Grupo Lins — agent login / password reset theme (overrides login.css).
 * Light look: cream page, white card with a dark logo strip (the logo has
 * white lettering) and gold accents — same palette as scp-lins.css. */

:root {
    --lins-gold: #c9a063;
    --lins-gold-dark: #b8863a;
    --lins-gold-ink: #8a6327;
    --lins-page: #f6f2ea;
    --lins-border: #e8e0d2;
    --lins-dark: #120e0a;
    --lins-dark-2: #1c1610;
    --lins-ink: #2b241c;
    --lins-muted: #8c8173;
}

body, input, button {
    font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

html, body {
    min-height: 100%;
}

html {
    background: var(--lins-page) url("../../assets/default/images/lins-bg.webp") center / cover no-repeat fixed;
}

body {
    background: transparent;
}

/* Our own photo is on body; hide login.css's backdrop */
#brickwall {
    display: none;
}

#loginBox {
    width: 400px;
    max-width: calc(100% - 32px);
    left: 50%;
    top: 50%;
    margin-left: 0;
    transform: translate(-50%, -50%);
    padding: 0 0 32px;
    overflow: hidden;
    border-radius: 14px;
    /* Translucent frosted card over the photo */
    background: rgba(255, 255, 255, 0.72) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 12px 40px rgba(18, 14, 10, 0.35);
    color: var(--lins-ink);
}

/* Frosted-glass layers from login.css are not used */
#loginBox:after,
#blur {
    display: none;
}

/* Everything but the logo strip gets the card's side padding */
#loginBox > *:not(#logo):not(#blur) {
    margin-left: 36px;
    margin-right: 36px;
}

#logo {
    margin: 0 0 8px;
    padding: 28px 36px 22px;
    background: linear-gradient(180deg, var(--lins-dark-2), var(--lins-dark));
    border-bottom: 2px solid var(--lins-gold);
}

#logo a {
    height: auto;
}

#logo a img {
    max-width: 240px;
    max-height: none;
    width: 100%;
}

#logo .valign-helper {
    display: none;
}

h3 {
    color: var(--lins-muted);
    font-size: 0.85em;
    margin: 1.25em 0;
}

#login-message {
    color: var(--lins-gold-ink);
    letter-spacing: 0.02em;
}

div.banner {
    color: var(--lins-muted);
}

form {
    width: auto;
}

fieldset {
    margin: 0;
}

fieldset input,
input[type=text],
input[type=password] {
    width: 100%;
    margin-bottom: 14px;
    padding: 12px 14px;
    font-size: 0.95em;
    color: var(--lins-ink);
    background: #faf7f1;
    border: 1px solid var(--lins-border);
    border-radius: 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

fieldset input::placeholder {
    color: var(--lins-muted);
    font-style: normal;
}

input:focus {
    outline: none;
    background: #fff;
    border-color: var(--lins-gold);
    box-shadow: 0 0 0 3px rgba(201, 160, 99, 0.22);
}

/* Keep Chrome autofill from painting the fields yellow */
input:-webkit-autofill {
    -webkit-text-fill-color: var(--lins-ink);
    -webkit-box-shadow: 0 0 0 1000px #faf7f1 inset;
    caret-color: var(--lins-ink);
}

button[type=submit],
button[type=submit].pull-right {
    float: none;
    display: block;
    width: 100%;
    height: auto;
    margin-top: 6px;
    padding: 12px;
    font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
    color: #1a140d;
    background: linear-gradient(180deg, #d9b277, var(--lins-gold));
    border: 1px solid var(--lins-gold-dark);
    box-shadow: none;
    border-radius: 8px;
}

button[type=submit]:hover,
button[type=submit]:active {
    color: #1a140d;
    background: linear-gradient(180deg, #e3c08a, #d0a96b);
    box-shadow: 0 6px 18px rgba(201, 160, 99, 0.30);
}

button[type=submit][disabled] {
    opacity: 0.6;
    cursor: wait;
}

#reset-link {
    display: inline-block;
    margin-top: 4px;
    color: var(--lins-muted);
    text-decoration: none;
}

#reset-link:hover {
    color: var(--lins-gold-ink);
}

#reset-link.hidden {
    display: none;
}

#loading.dialog {
    color: var(--lins-gold-ink);
}

hr {
    border-bottom-color: var(--lins-border);
}

@media (max-width: 480px) {
    #loginBox > *:not(#logo):not(#blur) {
        margin-left: 20px;
        margin-right: 20px;
    }
    #logo {
        padding: 22px 20px 18px;
    }
}
