/* Clerk screens (/entrar and /conta). Hand-written, not built with Mix. */
#clerk-sign-in-mount {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

/* Account page (/conta): the Clerk profile fills the ERP card, no second card. */
#clerk-profile-mount {
    width: 100%;
}

#clerk-loading {
    color: #6c757d;
    margin-top: 1rem;
}

#clerk-message,
#clerk-account-message {
    color: #bd2130;
    font-size: .9rem;
    margin-top: 1rem;
}

#clerk-legacy-link {
    font-size: .9rem;
    margin-top: .5rem;
}

.clerk-account-actions {
    margin-bottom: 1rem;
}

/* Sign-in page (/entrar): standalone layout. The legacy auth layout is untouched. */
body.clerk-auth {
    box-sizing: border-box;
    color: #1f2937;
    display: flex;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

.clerk-auth__brand {
    align-items: center;
    background: linear-gradient(155deg, #6cc24f 0%, #4fa63a 45%, #2e7d32 100%);
    display: flex;
    flex: 0 0 28%;
    justify-content: center;
    min-width: 280px;
    overflow: hidden;
    padding: 40px 32px;
    position: relative;
}

.clerk-auth__shape {
    border-radius: 50%;
    pointer-events: none;
    position: absolute;
}

.clerk-auth__shape--one {
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 70%);
    height: 420px;
    right: -160px;
    top: -140px;
    width: 420px;
}

.clerk-auth__shape--two {
    border: 2px solid rgba(255, 255, 255, .16);
    bottom: -120px;
    box-shadow: 0 0 0 36px rgba(255, 255, 255, .05), 0 0 0 72px rgba(255, 255, 255, .03);
    height: 300px;
    left: -110px;
    width: 300px;
}

.clerk-auth__brand-content {
    max-width: 280px;
    position: relative;
    text-align: center;
    width: 100%;
    z-index: 1;
}

.clerk-auth__brand-content img {
    height: auto;
    width: 100%;
}

.clerk-auth__tagline {
    border-top: 1px solid rgba(255, 255, 255, .3);
    color: rgba(255, 255, 255, .92);
    font-size: .95rem;
    line-height: 1.45;
    margin: 28px 0 0;
    padding-top: 20px;
}

.clerk-auth__stage {
    align-items: center;
    background: #1f2937 url('../img/background.svg') no-repeat center center;
    background-size: cover;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 24px 16px;
}

.clerk-auth__panel {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .35);
    max-width: 420px;
    min-width: 0;
    padding: 36px 32px 28px;
    text-align: center;
    width: 100%;
}

.clerk-auth__copyright {
    color: rgba(255, 255, 255, .92);
    font-size: .8rem;
    margin: 20px 0 0;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}

.clerk-auth__title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 0 0 6px;
}

.clerk-auth__subtitle {
    color: #6b7280;
    font-size: .95rem;
    margin: 0 0 8px;
}

.clerk-auth__noscript,
body.clerk-auth #clerk-message {
    background: #fef2f2;
    border-radius: 12px;
    color: #b91c1c;
    font-size: .9rem;
    padding: 10px 14px;
}

body.clerk-auth #clerk-legacy-link {
    color: #6b7280;
    display: inline-block;
    font-size: .85rem;
    margin-top: 12px;
    text-decoration: underline;
}

body.clerk-auth #clerk-loading {
    color: #9ca3af;
    margin: 24px 0;
}

body.clerk-auth #clerk-sign-in-mount {
    margin-top: 0;
}

body.clerk-auth .d-none {
    display: none !important;
}

body.clerk-auth .cl-rootBox,
body.clerk-auth .cl-cardBox {
    max-width: 100%;
}

@media (max-width: 991px) {
    .clerk-auth__brand {
        flex-basis: 34%;
        padding: 32px 20px;
    }
}

@media (max-width: 767px) {
    body.clerk-auth {
        flex-direction: column;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .clerk-auth__brand {
        flex: 0 0 auto;
        min-width: 0;
        padding: 22px 20px;
    }

    .clerk-auth__brand-content {
        max-width: 170px;
    }

    .clerk-auth__tagline {
        display: none;
    }

    .clerk-auth__shape--one {
        height: 220px;
        right: -80px;
        top: -100px;
        width: 220px;
    }

    .clerk-auth__shape--two {
        display: none;
    }

    .clerk-auth__stage {
        justify-content: flex-start;
        padding: 28px 16px calc(20px + env(safe-area-inset-bottom));
    }

    .clerk-auth__panel {
        padding: 28px 20px 22px;
    }

    .clerk-auth__copyright {
        margin-top: auto;
        padding-top: 20px;
    }
}

@media (max-width: 380px) {
    .clerk-auth__stage {
        padding-left: 10px;
        padding-right: 10px;
    }

    .clerk-auth__panel {
        border-radius: 16px;
        padding: 24px 14px 18px;
    }

    .clerk-auth__title {
        font-size: 1.3rem;
    }
}

body.clerk-auth *,
body.clerk-auth *::before,
body.clerk-auth *::after {
    box-sizing: border-box;
}
