@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Nunito+Sans:wght@400;600;700;800&display=swap");

:root {
    --stark-bg: #f7f1e4;
    --stark-bg-soft: #fbf8f1;
    --stark-card: rgba(255, 255, 255, 0.96);
    --stark-card-border: rgba(37, 32, 22, 0.08);
    --stark-accent: #d8a617;
    --stark-accent-strong: #f2c93a;
    --stark-text: #1d1e26;
    --stark-muted: #707789;
    --stark-input: #eceef5;
    --stark-shadow: 0 30px 70px rgba(33, 29, 21, 0.18);
}

html body.stark-login-body {
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(216, 166, 23, 0.18), transparent 22%),
        radial-gradient(circle at 87% 74%, rgba(216, 166, 23, 0.14), transparent 18%),
        linear-gradient(180deg, #fbf7ee 0%, #f5ede0 100%);
    font-family: "Nunito Sans", sans-serif;
}

body.stark-login-body #wrapwrap,
body.stark-login-body main,
body.stark-login-body .stark-login-layout,
body.stark-login-body .stark-login-page,
body.stark-login-body .stark-login-shell,
body.stark-login-body .stark-login-panel {
    min-height: 100vh;
    min-height: 100svh;
}

body.stark-login-body main {
    padding: 0 !important;
}

.stark-login-body .o_skip_to_content,
.stark-login-body a[href="#wrapwrap"] {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 20;
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    background: rgba(29, 30, 38, 0.92);
    color: #fff4cc;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}

.stark-login-body .o_skip_to_content:focus,
.stark-login-body a[href="#wrapwrap"]:focus {
    transform: translateY(0);
}

.stark-login-layout {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
}

.stark-login-layout::before,
.stark-login-layout::after {
    content: "";
    position: absolute;
    pointer-events: none;
    filter: blur(1px);
}

.stark-login-layout::before {
    top: 8%;
    left: 8%;
    width: min(32vw, 22rem);
    height: min(32vw, 22rem);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0) 72%);
    opacity: 0.85;
}

.stark-login-layout::after {
    right: 5%;
    bottom: 9%;
    width: 4.5rem;
    height: 4.5rem;
    background:
        linear-gradient(45deg, transparent 44%, rgba(255, 255, 255, 0.95) 45%, rgba(255, 255, 255, 0.95) 55%, transparent 56%),
        linear-gradient(-45deg, transparent 44%, rgba(255, 255, 255, 0.95) 45%, rgba(255, 255, 255, 0.95) 55%, transparent 56%);
    opacity: 0.52;
}

.oe_login_form.stark-login-page {
    display: block;
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    padding: 0;
}

.stark-login-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2.5rem 1.25rem;
}

.stark-login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
}

.stark-login-card {
    position: relative;
    z-index: 1;
    width: min(100%, 27rem);
    padding: 1.6rem 1.75rem 1.8rem;
    border: 1px solid var(--stark-card-border);
    border-radius: 1.9rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 249, 244, 0.96));
    box-shadow: var(--stark-shadow);
}

.stark-login-card__brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.4rem;
}

.stark-login-card__brand-logo {
    display: block;
    width: 3rem;
    height: auto;
    flex: 0 0 auto;
    object-fit: contain;
}

.stark-login-card__brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.stark-login-card__brand-eyebrow {
    color: var(--stark-text);
    font-family: "Bebas Neue", sans-serif;
    font-size: 1rem;
    letter-spacing: 0.08em;
    line-height: 1;
}

.stark-login-card__brand-tagline {
    color: var(--stark-muted);
    font-size: 0.84rem;
    line-height: 1.25;
}

.stark-login-card__intro {
    margin-bottom: 1.5rem;
}

.stark-login-card h2 {
    margin: 0;
    color: var(--stark-text);
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(3.2rem, 7vw, 4.2rem);
    line-height: 0.9;
    letter-spacing: 0.04em;
}

.stark-login-card__intro p {
    margin: 0.6rem 0 0;
    color: var(--stark-muted);
    font-size: 1rem;
}

.stark-login-card__signal {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.35rem;
    padding: 0.62rem 0.95rem;
    border-radius: 999px;
    background: rgba(216, 166, 23, 0.1);
    box-shadow: 0 10px 24px rgba(216, 166, 23, 0.08);
    color: #7f5e06;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.25;
}

.stark-login-card__signal-dot {
    width: 0.58rem;
    height: 0.58rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--stark-accent), var(--stark-accent-strong));
    box-shadow: 0 0 0 0.26rem rgba(216, 166, 23, 0.16);
}

.stark-login-page .form-label {
    margin-bottom: 0.6rem;
    color: var(--stark-text);
    font-size: 0.98rem;
    font-weight: 800;
}

.stark-field {
    position: relative;
    display: block !important;
    width: 100%;
    margin-bottom: 1.2rem !important;
}

.stark-login-page .stark-field .form-label {
    display: flex !important;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.stark-login-page .form-control {
    width: 100%;
    min-height: 3rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(29, 30, 38, 0.08);
    border-radius: 0;
    background: var(--stark-input);
    color: var(--stark-text);
    font-size: 0.98rem;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.stark-login-page .form-control::placeholder {
    color: rgba(112, 119, 137, 0.72);
}

.stark-login-page .form-control:focus {
    border-color: rgba(216, 166, 23, 0.34);
    background: #f2f4fa;
    box-shadow: 0 0 0 3px rgba(216, 166, 23, 0.12);
}

.stark-login-page .form-control[readonly] {
    background: #f1f2f7;
}

.stark-field__focus {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--stark-accent), var(--stark-accent-strong));
    opacity: 0;
    transform: scaleX(0.3);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.stark-field:focus-within .stark-field__focus {
    opacity: 1;
    transform: scaleX(1);
}

.stark-login-page .input-group {
    align-items: stretch;
}

.stark-login-page .input-group .form-control {
    border-radius: 0;
}

.stark-login-page .input-group .btn {
    border-radius: 0;
}

.stark-forgot-link {
    color: var(--stark-accent);
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
}

.stark-forgot-link:hover,
.stark-forgot-link:focus {
    color: #b78707;
    text-decoration: none;
}

.stark-login-actions {
    margin-top: 1.65rem;
}

.stark-login-button {
    width: 100%;
    min-height: 3.15rem;
    padding: 0.95rem 1.15rem;
    border: 0;
    border-radius: 1rem;
    background: linear-gradient(90deg, var(--stark-accent), var(--stark-accent-strong));
    box-shadow: 0 18px 32px rgba(216, 166, 23, 0.24);
    color: var(--stark-text);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.stark-login-button:hover,
.stark-login-button:focus {
    transform: translateY(-1px);
    filter: brightness(1.02);
    box-shadow: 0 20px 36px rgba(216, 166, 23, 0.28);
}

.stark-login-note {
    margin: 1rem 0 0;
    color: rgba(112, 119, 137, 0.92);
    font-size: 0.92rem;
    text-align: center;
}

.stark-login-page .alert {
    border: 0;
    border-radius: 0.95rem;
    font-size: 0.94rem;
}

.stark-login-page .alert-danger {
    background: rgba(170, 38, 38, 0.08);
    color: #8b1f1f;
}

.stark-login-page .alert-success {
    background: rgba(31, 132, 86, 0.08);
    color: #1b6f49;
}

.stark-login-page .o_login_auth,
.stark-login-page a.btn.btn-link.btn-sm {
    display: none !important;
}

@media (max-width: 767.98px) {
    .stark-login-shell {
        align-items: flex-start;
        padding: 1rem 0.9rem 1.25rem;
    }

    .stark-login-card {
        width: 100%;
        padding: 1.3rem 1rem 1.45rem;
        border-radius: 1.6rem;
    }

    .stark-login-card__brand {
        margin-bottom: 1.1rem;
    }

    .stark-login-card__brand-logo {
        width: 2.55rem;
    }

    .stark-login-card__brand-eyebrow {
        font-size: 0.92rem;
    }

    .stark-login-card__brand-tagline {
        font-size: 0.78rem;
    }

    .stark-login-card h2 {
        font-size: clamp(2.6rem, 14vw, 3.5rem);
    }

    .stark-login-card__intro p {
        font-size: 0.95rem;
        line-height: 1.45;
    }

    .stark-login-card__signal {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 0.68rem 0.8rem;
    }

    .stark-login-page .stark-field .form-label {
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .stark-login-page .form-control {
        padding: 0.82rem 0.85rem;
        font-size: 0.95rem;
    }

    .stark-login-button {
        min-height: 3.05rem;
        font-size: 0.95rem;
        letter-spacing: 0.14em;
    }
}

@media (max-width: 479.98px) {
    .stark-login-shell {
        padding: 0.8rem 0.75rem 1rem;
    }

    .stark-login-card {
        padding: 1.15rem 0.9rem 1.3rem;
        border-radius: 1.4rem;
    }

    .stark-login-card__brand {
        gap: 0.7rem;
    }

    .stark-login-card__brand-logo {
        width: 2.25rem;
    }

    .stark-login-card__signal {
        font-size: 0.78rem;
    }

    .stark-forgot-link {
        font-size: 0.84rem;
    }
}
