/*
 * Identidade visual da tela de login da Santa Casa de Ruy Barbosa.
 * Este arquivo e carregado apenas por templates/pages/login.html.twig.
 */

:root {
    --scrb-green-950: #0b3d27;
    --scrb-green-900: #115332;
    --scrb-green-800: #17683d;
    --scrb-green-700: #1f7a48;
    --scrb-green-600: #2f8b55;
    --scrb-green-100: #e7f4eb;
    --scrb-green-50: #f3f9f5;
    --scrb-ink: #193229;
    --scrb-muted: #68776f;
    --scrb-border: #dbe6df;
}

body.welcome-anonymous {
    min-height: 100vh;
    color: var(--scrb-ink);
    background:
        radial-gradient(circle at 10% 12%, rgb(255 255 255 / 18%) 0 7rem, transparent 7.1rem),
        radial-gradient(circle at 92% 88%, rgb(255 255 255 / 11%) 0 11rem, transparent 11.1rem),
        linear-gradient(135deg, var(--scrb-green-950) 0%, var(--scrb-green-800) 55%, var(--scrb-green-600) 100%);
    font-family: Inter, "Segoe UI", sans-serif;
}

body.welcome-anonymous::before,
body.welcome-anonymous::after {
    position: fixed;
    z-index: 0;
    width: 18rem;
    height: 18rem;
    border: 1px solid rgb(255 255 255 / 10%);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

body.welcome-anonymous::before {
    top: -8rem;
    right: 18%;
}

body.welcome-anonymous::after {
    bottom: -10rem;
    left: 12%;
}

.welcome-anonymous .page-anonymous {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.welcome-anonymous .page-anonymous > .flex-fill {
    min-height: 100vh;
    margin-top: 0 !important;
    padding: 2rem 1.25rem !important;
}

.welcome-anonymous .container-tight {
    width: min(100%, 66rem);
    max-width: 66rem !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Remove somente a marca padrao que fica acima do cartao de login. */
.welcome-anonymous .container-tight > .text-center:first-child {
    display: none;
}

.welcome-anonymous .main-content-card {
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 22%);
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: 0 2rem 5rem rgb(3 36 20 / 32%);
}

.welcome-anonymous .main-content-card > .card-body {
    padding: 0;
}

.santacasa-login {
    display: grid;
    grid-template-columns: minmax(19rem, 0.9fr) minmax(25rem, 1.1fr);
    min-height: 37.5rem;
}

.santacasa-brand-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 3rem;
    background:
        linear-gradient(rgb(11 61 39 / 8%), rgb(11 61 39 / 30%)),
        linear-gradient(155deg, var(--scrb-green-50) 0%, #d6ebdc 100%);
}

.santacasa-brand-panel::before {
    position: absolute;
    top: -7rem;
    left: -8rem;
    width: 20rem;
    height: 20rem;
    border: 3.5rem solid rgb(31 122 72 / 8%);
    border-radius: 50%;
    content: "";
}

.santacasa-brand-panel::after {
    position: absolute;
    right: -4rem;
    bottom: -6rem;
    width: 17rem;
    height: 17rem;
    border: 1px solid rgb(31 122 72 / 18%);
    border-radius: 50%;
    box-shadow:
        0 0 0 2rem rgb(31 122 72 / 5%),
        0 0 0 4rem rgb(31 122 72 / 4%);
    content: "";
}

.santacasa-brand-content {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
}

.santacasa-logo {
    display: block;
    width: min(100%, 18rem);
    height: auto;
    margin: 0 auto;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 1.25rem 2.75rem rgb(17 83 50 / 16%);
}

.santacasa-brand-copy {
    margin-top: 2rem;
}

.santacasa-brand-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--scrb-green-800);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.santacasa-brand-kicker::before,
.santacasa-brand-kicker::after {
    width: 1.5rem;
    height: 1px;
    background: currentcolor;
    content: "";
    opacity: 0.45;
}

.santacasa-brand-copy p {
    margin: 0.6rem 0 0;
    color: var(--scrb-green-950);
    font-size: 1.15rem;
    font-weight: 650;
}

.santacasa-form-panel {
    display: flex;
    align-items: center;
    background: #fff;
}

.santacasa-form-content {
    width: 100%;
    max-width: 32rem;
    margin: 0 auto;
    padding: 3.5rem 4.25rem;
}

.santacasa-mobile-logo {
    display: none;
}

.santacasa-login-message {
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    border: 1px solid #cde6d5;
    border-radius: 0.75rem;
    color: var(--scrb-green-900);
    background: var(--scrb-green-50);
    font-size: 0.875rem;
}

.santacasa-login-message > :last-child {
    margin-bottom: 0;
}

.santacasa-form-heading {
    position: relative;
}

.santacasa-heading-accent {
    display: block;
    width: 2.75rem;
    height: 0.25rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--scrb-green-700), #65ad7e);
}

.santacasa-form-heading h2 {
    margin: 0;
    color: var(--scrb-ink);
    font-size: clamp(1.5rem, 2.4vw, 1.9rem);
    font-weight: 750;
    letter-spacing: -0.025em;
}

.santacasa-form-heading p {
    margin: 0.55rem 0 0;
    color: var(--scrb-muted);
    font-size: 0.9rem;
}

.santacasa-login .form-label {
    margin-bottom: 0.45rem;
    color: #43574d;
    font-size: 0.78rem;
    font-weight: 700;
}

.santacasa-input-wrap {
    position: relative;
}

.santacasa-input-wrap > i {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 1rem;
    color: #7b9185;
    font-size: 1.15rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.santacasa-login .form-control,
.santacasa-login .form-select,
.santacasa-login .select2-selection {
    min-height: 3.25rem;
    border: 1px solid var(--scrb-border);
    border-radius: 0.75rem;
    color: var(--scrb-ink);
    background-color: #fbfdfb;
    box-shadow: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.santacasa-input-wrap .form-control {
    padding-right: 1rem;
    padding-left: 3rem;
}

.santacasa-login .form-control:focus,
.santacasa-login .form-select:focus,
.santacasa-login .select2-container--focus .select2-selection {
    border-color: var(--scrb-green-600);
    background-color: #fff;
    box-shadow: 0 0 0 0.22rem rgb(47 139 85 / 14%);
}

.santacasa-login .form-check {
    color: var(--scrb-muted);
}

.santacasa-login .form-check-input {
    border-color: #bccdc3;
}

.santacasa-login .form-check-input:checked {
    border-color: var(--scrb-green-700);
    background-color: var(--scrb-green-700);
}

.santacasa-login .form-footer {
    margin-top: 1.5rem;
}

.santacasa-login .btn-primary {
    display: inline-flex;
    min-height: 3.25rem;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    border: 0;
    border-radius: 0.75rem;
    color: #fff;
    background: linear-gradient(135deg, var(--scrb-green-800), var(--scrb-green-600));
    box-shadow: 0 0.75rem 1.5rem rgb(31 122 72 / 20%);
    font-weight: 700;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.santacasa-login .btn-primary:hover {
    color: #fff;
    box-shadow: 0 0.9rem 1.75rem rgb(31 122 72 / 28%);
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.santacasa-login .btn-primary:focus-visible {
    outline: 3px solid rgb(47 139 85 / 28%);
    outline-offset: 3px;
}

.santacasa-login .btn-primary i {
    font-size: 1.05rem;
    transition: transform 160ms ease;
}

.santacasa-login .btn-primary:hover i {
    transform: translateX(0.2rem);
}

.santacasa-login .forgot_password a,
.santacasa-login a {
    color: var(--scrb-green-700);
}

.santacasa-login .forgot_password a:hover,
.santacasa-login a:hover {
    color: var(--scrb-green-900);
}

.santacasa-plugin-panel {
    width: 100%;
    margin-top: 1rem;
}

/* Recuperacao e redefinicao de senha. */
.santacasa-recovery {
    min-height: 35rem;
}

.santacasa-recovery-content > form {
    width: 100%;
}

.santacasa-recovery .card-title {
    position: relative;
    margin-bottom: 1rem !important;
    color: var(--scrb-ink);
    font-size: clamp(1.5rem, 2.4vw, 1.9rem);
    font-weight: 750;
    letter-spacing: -0.025em;
    text-align: left !important;
}

.santacasa-recovery .card-title::before {
    display: block;
    width: 2.75rem;
    height: 0.25rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--scrb-green-700), #65ad7e);
    content: "";
}

.santacasa-recovery form > .text-muted {
    margin-bottom: 1.75rem !important;
    color: var(--scrb-muted) !important;
    font-size: 0.9rem;
    line-height: 1.65;
}

.santacasa-recovery .form-field {
    display: block;
    width: 100%;
    margin-right: 0;
    margin-left: 0;
}

.santacasa-recovery .form-field > label,
.santacasa-recovery .form-field > .field-container {
    width: 100%;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
    text-align: left !important;
}

.santacasa-recovery .form-field > label {
    margin-bottom: 0.45rem;
}

.santacasa-recovery input[type="email"] {
    padding-right: 1rem;
    padding-left: 1rem;
}

.santacasa-recovery .form-footer {
    display: block !important;
}

.santacasa-recovery .form-footer .btn-primary {
    width: 100%;
}

.santacasa-recovery .alert {
    border-radius: 0.75rem;
}

.santacasa-back-text {
    color: rgb(255 255 255 / 82%);
}

.santacasa-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    text-underline-offset: 0.25rem;
}

.santacasa-back-link:hover,
.santacasa-back-link:focus {
    color: #fff;
    text-decoration: underline;
}

.welcome-anonymous .container-tight > .text-muted {
    color: rgb(255 255 255 / 82%) !important;
    font-size: 0.82rem;
}

.santacasa-footer-link {
    color: #fff;
    font-weight: 650;
    text-decoration: none;
    text-underline-offset: 0.25rem;
}

.santacasa-footer-link:hover,
.santacasa-footer-link:focus {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 767.98px) {
    .welcome-anonymous .page-anonymous > .flex-fill {
        padding: 1rem !important;
    }

    .welcome-anonymous .main-content-card {
        border-radius: 1.15rem;
    }

    .santacasa-login {
        display: block;
        min-height: auto;
    }

    .santacasa-brand-panel {
        display: none;
    }

    .santacasa-form-content {
        max-width: 30rem;
        padding: 2rem 1.5rem 2.25rem;
    }

    .santacasa-mobile-logo {
        display: block;
        margin: 0 auto 1.5rem;
        text-align: center;
    }

    .santacasa-mobile-logo img {
        width: 10rem;
        height: auto;
        border-radius: 0.75rem;
    }

    .santacasa-form-heading {
        text-align: center;
    }

    .santacasa-heading-accent,
    .santacasa-recovery .card-title::before {
        margin-right: auto;
        margin-left: auto;
    }

    .santacasa-recovery .card-title {
        text-align: center !important;
    }
}

@media (max-height: 720px) and (min-width: 768px) {
    .welcome-anonymous .page-anonymous > .flex-fill {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .santacasa-login {
        min-height: 33rem;
    }

    .santacasa-logo {
        width: min(100%, 15rem);
    }

    .santacasa-form-content {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .santacasa-login *,
    .santacasa-login *::before,
    .santacasa-login *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
