/* ================================
   Oak Tree Antiques Admin Login
   Prefix: l4d-login-
================================ */

.l4d-login {
    position: relative;
    min-height: 100vh;
    color: var(--l4d-ink);
    font-family: var(--l4d-font-sans, sans-serif);
    background: var(--l4d-bg);
    overflow: hidden;
}

.l4d-login *,
.l4d-login *::before,
.l4d-login *::after {
    box-sizing: border-box;
}

.l4d-login::before {
    display: none !important;
}

.l4d-login__shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.l4d-login__wrap {
    min-height: calc(100vh - 140px);
    display: grid;
    place-items: center;
    padding: 46px 0 64px;
}

.l4d-login__card {
    width: min(540px, 100%);
    position: relative;
    border: 1px solid var(--l4d-border) !important;
    background: var(--l4d-surface) !important;
    border-top: 3px solid var(--l4d-secondary) !important;
    box-shadow: var(--l4d-shadow) !important;
    border-radius: 4px;
    padding: 28px;
}

.l4d-login__card::before {
    display: none !important;
}

.l4d-login__card-inner {
    position: relative;
    z-index: 1;
}

.l4d-login__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--l4d-border);
}

.l4d-login__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--l4d-secondary);
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.l4d-login__eyebrow::before,
.l4d-login__eyebrow::after {
    content: "";
    width: 34px;
    height: 1px;
    background: var(--l4d-secondary);
}

.l4d-login__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 20px;
    border: 1px solid var(--l4d-primary);
    background: var(--l4d-primary);
    color: var(--l4d-ink-inverse);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 12px;
    transition: 0.25s ease;
    cursor: pointer;
}

.l4d-login__button:hover {
    background: var(--l4d-primary-alt);
    color: var(--l4d-ink-inverse);
    transform: translateY(-2px);
}

.l4d-login__button--secondary {
    background: transparent;
    color: var(--l4d-primary);
}

.l4d-login__button--secondary:hover {
    background: var(--l4d-primary);
    color: var(--l4d-ink-inverse);
}

.l4d-login__intro h1 {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.12;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.l4d-login__intro p {
    margin: 0 0 22px;
    color: #4a3325;
    line-height: 1.75;
}

.l4d-login__flash {
    margin-bottom: 16px;
    padding: 13px 14px;
    border: 1px solid var(--l4d-border);
    background: rgba(139, 48, 31, 0.12);
    color: #5a2118;
    font-size: 14px;
    line-height: 1.5;
}

.l4d-login__flash--success {
    background: rgba(90, 112, 55, 0.14);
    color: #33431f;
}

.l4d-login__form {
    display: grid;
    gap: 18px;
}

.l4d-login__field {
    display: grid;
    gap: 7px;
}

.l4d-login__field span {
    color: var(--l4d-primary);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.l4d-login__field input {
    width: 100%;
    min-height: 48px;
    padding: 0 13px;
    border: 1px solid var(--l4d-border);
    background: var(--l4d-surface);
    color: var(--l4d-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    outline: none;
    transition: 0.2s ease;
}

.l4d-login__field input:focus {
    border-color: var(--l4d-secondary);
    background: var(--l4d-surface);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.l4d-login__submit {
    width: 100%;
}

@media (max-width: 760px) {
    .l4d-login__head {
        flex-direction: column;
    }

    .l4d-login__button {
        width: 100%;
    }
}

@media (max-width: 430px) {
    .l4d-login__shell {
        width: min(100% - 24px, 1180px);
    }

    .l4d-login__card {
        padding: 18px;
    }
}
