/* Hypersoft login – solid Odoo brand purple (#714B67) */

:root {
    --hs-login-brand: #714b67;
}

html,
body.hs-login-body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

body.hs-login-body {
    background: var(--hs-login-brand);
}

body.hs-login-body #wrapwrap {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--hs-login-brand);
}

body.hs-login-body main,
body.hs-login-body #wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    background: var(--hs-login-brand);
}

#wrap.hs-login-body {
    margin: 0;
    padding: 0;
}

body.hs-login-body .o_brand_promotion {
    display: none !important;
}

body.hs-login-body .card,
body.hs-login-body .o_database_list,
body.hs-login-body .oe_website_login_container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    max-width: none !important;
}

.hs-login-page {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
    overflow: hidden;
    font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #fff;
    background: var(--hs-login-brand);
}

.hs-login-container {
    width: 100%;
    max-width: 340px;
    text-align: center;
}

.hs-login-brand {
    margin-bottom: 2.5rem;
}

.hs-login-logo {
    display: block;
    margin: 0 auto 0.75rem;
    max-width: 200px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
}

.hs-login-tagline {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.01em;
}

.hs-login-form-wrap {
    text-align: start;
}

.hs-login-form-wrap .oe_login_form {
    max-width: none;
    margin: 0;
    position: static;
}

.hs-login-form-wrap .form-label {
    font-size: 0.95rem;
    font-weight: 300;
    color: #fff;
    margin-bottom: 0.5rem;
}

.hs-login-form-wrap .form-label .btn-link {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8125rem;
    font-weight: 300;
    text-decoration: none;
    padding: 0;
}

.hs-login-form-wrap .form-label .btn-link:hover {
    color: #fff;
    text-decoration: underline;
}

.hs-login-form-wrap .form-control,
.hs-login-form-wrap .hs-form-control {
    border: none;
    border-radius: 999px;
    background: #e8e8e8;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #333;
    transition: box-shadow 0.15s ease;
}

.hs-login-form-wrap .form-control:focus,
.hs-login-form-wrap .hs-form-control:focus {
    background: #f0f0f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
    outline: none;
}

.hs-login-form-wrap .form-control::placeholder {
    color: #999;
}

.hs-login-form-wrap .mb-3 {
    margin-bottom: 1.25rem !important;
}

.hs-login-form-wrap .alert {
    border-radius: 999px;
    font-size: 0.875rem;
    text-align: center;
    border: none;
}

.hs-login-form-wrap .oe_login_buttons {
    display: flex;
    justify-content: center;
    margin-top: 0.25rem;
    padding-top: 0 !important;
}

.hs-login-submit {
    position: relative;
}

.hs-login-form-wrap .hs-login-submit {
    width: 50%;
    min-width: 8rem;
    border: none;
    border-radius: 999px;
    padding: 0.65rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--hs-login-brand);
    background: #e8e8e8;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.hs-login-form-wrap .hs-login-submit:hover {
    background: #f5f5f5;
    color: var(--hs-login-brand);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.28);
}

.hs-login-submit.is-loading,
.hs-login-submit.is-loading:hover {
    color: transparent;
    cursor: wait;
    pointer-events: none;
}

.hs-login-submit.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.125rem;
    height: 1.125rem;
    margin: -0.5625rem 0 0 -0.5625rem;
    border: 2px solid var(--hs-login-brand);
    border-top-color: transparent;
    border-radius: 50%;
    animation: hs-login-spin 0.65s linear infinite;
}

@keyframes hs-login-spin {
    to {
        transform: rotate(360deg);
    }
}

.hs-login-form-wrap .o_login_auth {
    display: none;
}

.hs-login-forgot-password,
.oe_login_form .hs-login-forgot-password {
    margin-top: 1rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hs-forgot-password-link {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 400;
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.15s ease;
}

.hs-forgot-password-link:hover {
    color: #fff;
    opacity: 1;
    text-decoration: underline;
}

[dir="rtl"] .hs-login-form-wrap .form-label.d-flex {
    flex-direction: row-reverse;
}

[dir="rtl"] .hs-login-form-wrap .input-group > :not(:first-child) {
    margin-right: calc(var(--bs-border-width) * -1);
    margin-left: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: var(--bs-border-radius);
    border-bottom-left-radius: var(--bs-border-radius);
}

[dir="rtl"] .hs-login-form-wrap .input-group > :not(:last-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: var(--bs-border-radius);
    border-bottom-right-radius: var(--bs-border-radius);
}

@media (max-width: 480px) {
    .hs-login-page {
        padding: 1.25rem;
    }

    .hs-login-brand {
        margin-bottom: 2rem;
    }

    .hs-login-logo {
        max-width: 140px;
    }
}
