:root {
    --ctacte-green: #087443;
    --ctacte-blue: #105292;
    --ctacte-teal: #0a6f7b;
    --ctacte-ink: #17221e;
    --ctacte-muted: #65736e;
    --ctacte-border: #d7dfdc;
    --ctacte-panel: #ffffff;
    --ctacte-soft: #f4f8f6;
}

body.ctacte-login-page,
body:has(.ctacte-shell) {
    background: #ffffff;
    color: var(--ctacte-ink);
    font-family: Arial, Helvetica, sans-serif;
}

body:has(.ctacte-shell) #app-bar,
body:has(.ctacte-shell) .mdc-top-app-bar,
body:has(.ctacte-shell) .mdc-drawer,
body:has(.ctacte-shell) .mdc-drawer-scrim,
body:has(.ctacte-shell) #casFooter,
body:has(.ctacte-shell) .cas-footer {
    display: none !important;
}

body:has(.ctacte-shell) .mdc-drawer-app-content,
body:has(.ctacte-shell) .mdc-top-app-bar--fixed-adjust {
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
}

.ctacte-shell {
    position: fixed;
    inset: 0;
    z-index: 1000;
    min-height: 100vh;
    background: #ffffff;
    overflow: auto;
}

.ctacte-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 38%) minmax(0, 1fr);
}

.ctacte-auth-pane {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px min(7vw, 84px);
    background: var(--ctacte-panel);
}

.ctacte-brand {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin-bottom: 42px;
}

.ctacte-brand img {
    width: 178px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.ctacte-login-panel {
    width: min(360px, 100%);
}

.ctacte-title {
    margin: 0 0 24px;
    color: var(--ctacte-ink);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
}

.ctacte-fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}

.ctacte-field {
    display: block;
    margin: 0 0 14px;
}

.ctacte-field label {
    display: block;
    margin: 0 0 6px;
    color: #29443a;
    font-size: 13px;
    font-weight: 700;
}

.ctacte-field > div {
    display: block;
}

.ctacte-input {
    width: 100%;
    min-height: 54px;
    border: 2px solid #222a27;
    border-radius: 14px;
    background: #ffffff;
    color: var(--ctacte-ink);
    padding: 12px 15px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.ctacte-input:focus {
    border-color: var(--ctacte-blue);
    box-shadow: 0 0 0 4px rgba(16, 82, 146, 0.13);
}

.ctacte-submit-row {
    display: flex;
    margin-top: 26px;
}

.ctacte-submit {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 14px;
    background: var(--ctacte-green);
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box;
}

.ctacte-submit:hover,
.ctacte-action:hover {
    filter: brightness(0.95);
}

.ctacte-links {
    display: flex;
    justify-content: center;
    margin: 14px 0 18px;
}

.ctacte-links a,
.ctacte-legal a {
    color: var(--ctacte-blue);
    text-decoration: underline;
}

.ctacte-message {
    width: min(360px, 100%);
    color: var(--ctacte-muted);
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 14px;
}

.ctacte-message a {
    color: var(--ctacte-blue);
    text-decoration: underline;
}

.ctacte-processing {
    display: none;
    color: var(--ctacte-muted);
    font-style: italic;
    margin-top: 12px;
    text-align: center;
}

.ctacte-social-login {
    margin-top: 8px;
}

.ctacte-social-login #loginProviders {
    margin: 0;
    padding: 0;
}

.ctacte-social-login h2,
.ctacte-social-login h3,
.ctacte-social-login .cas-providers-separator {
    display: none;
}

.ctacte-social-login a,
.ctacte-social-login button,
.ctacte-social-login .mdc-button {
    width: 100%;
    min-height: 46px;
    border: 1px solid #9aa5a0;
    border-radius: 10px;
    background: #ffffff;
    color: #1f2a26;
    justify-content: center;
    text-transform: none;
    font-size: 14px;
    font-weight: 600;
    box-shadow: none;
}

.ctacte-social-login a:hover,
.ctacte-social-login button:hover,
.ctacte-social-login .mdc-button:hover,
.ctacte-social-login a:focus,
.ctacte-social-login button:focus,
.ctacte-social-login .mdc-button:focus {
    background: #ffffff;
    color: #1f2a26;
    border-color: #6f7b76;
    box-shadow: 0 4px 12px rgba(13, 53, 67, 0.18);
}

.ctacte-social-login .mdc-button__label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ctacte-social-login .mdc-button__label::before,
.ctacte-social-login a[href*="client_name=Google"]::before,
.ctacte-social-login a[href*="/Google"]::before {
    content: "";
    display: inline-block;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-right: 0;
    background-image: url("../images/logo-gmail.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.ctacte-actions {
    width: min(360px, 100%);
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

.ctacte-action {
    min-height: 48px;
    border: 0;
    border-radius: 10px;
    background: var(--ctacte-green);
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 14px;
    cursor: pointer;
}

.ctacte-error {
    width: min(360px, 100%);
    border: 1px solid #8c1f28;
    border-radius: 10px;
    background: #ffd9dc;
    color: #68000a;
    margin: 0 0 18px;
    padding: 14px 16px;
    font-weight: 700;
}

.ctacte-footer {
    width: min(360px, 100%);
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--ctacte-border);
}

.ctacte-legal {
    color: var(--ctacte-muted);
    font-size: 12px;
    line-height: 1.45;
    margin: 0;
    text-align: center;
}

.ctacte-visual-pane {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(8, 116, 67, 0.95), rgba(10, 111, 123, 0.9) 44%, rgba(16, 82, 146, 0.96)),
        linear-gradient(45deg, #087443, #105292);
}

.ctacte-visual-pane::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 72px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 72px);
    opacity: 0.25;
}

.ctacte-visual-content {
    position: absolute;
    left: 54px;
    bottom: 46px;
    z-index: 1;
}

.ctacte-visual-content img {
    width: 210px;
    max-width: 42vw;
    height: auto;
}

@media (max-width: 900px) {
    .ctacte-layout {
        grid-template-columns: 1fr;
    }

    .ctacte-auth-pane {
        min-height: auto;
        padding: 34px 24px 28px;
        align-items: center;
    }

    .ctacte-brand {
        align-self: center;
        margin-bottom: 28px;
    }

    .ctacte-title {
        font-size: 25px;
        text-align: center;
    }

    .ctacte-visual-pane {
        min-height: 180px;
    }

    .ctacte-visual-content {
        left: 24px;
        bottom: 26px;
    }
}

@media (max-width: 480px) {
    .ctacte-auth-pane {
        padding: 28px 18px 24px;
    }

    .ctacte-input,
    .ctacte-submit {
        min-height: 48px;
    }

    .ctacte-actions {
        gap: 8px;
    }
}
