body:has(.user.signin) #navbar,
body:has(.user.signin) .page-footer,
body:has(.oauth2-authorize-application-box) #navbar,
body:has(.oauth2-authorize-application-box) .page-footer {
    display: none !important;
}

.user.signin .ui.secondary.pointing.tabular.menu {
    display: none !important;
}

body:has(.user.signin),
body:has(.oauth2-authorize-application-box) {
    background: radial-gradient(900px 520px at 12% 8%, rgba(0, 161, 224, .22), transparent 60%), radial-gradient(800px 520px at 92% 96%, rgba(18, 64, 90, .95), transparent 60%), linear-gradient(155deg, #081a27 0%, #0e2a3d 55%, #0a1f2e 100%) !important;
    background-attachment: fixed !important;
    min-height: 100vh;
}

.user.signin .page.grid,
.oauth2-authorize-application-box .page.grid {
    min-height: 100vh;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.user.signin .ui.container.fluid,
.oauth2-authorize-application-box .ui.container {
    max-width: 400px !important;
    margin: 0 auto !important;
    float: none !important;
}

.user.signin .column::before,
.oauth2-authorize-application-box .ui.container::before {
    content: "";
    display: block;
    width: 190px;
    height: 120px;
    margin: 0 auto 18px;
    background-image: url("/assets/img/flownaweb-logo.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.user.signin .ui.attached.header,
.oauth2-authorize-application-box .ui.attached.header {
    background: #fff !important;
    color: #14202b !important;
    border: 0 !important;
    border-radius: 14px 14px 0 0 !important;
    padding: 26px 28px 6px !important;
    font-size: 21px !important;
    font-weight: 700 !important;
    text-align: center !important;
}

.user.signin .ui.attached.segment,
.oauth2-authorize-application-box .ui.attached.segment {
    background: #fff !important;
    border: 0 !important;
    border-radius: 0 0 14px 14px !important;
    padding: 18px 28px 24px !important;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55) !important;
}

.user.signin form.ui.form {
    max-width: 100% !important;
    margin: 0 !important;
}

.user.signin .ui.form label {
    color: #14202b !important;
    font-weight: 600 !important;
    font-size: 12.5px !important;
}

.user.signin .ui.form input:not([type="checkbox"]) {
    height: 40px;
    background: #fff !important;
    border: 1px solid #e2e7ec !important;
    border-radius: 8px !important;
    color: #14202b !important;
}

.user.signin .ui.form input:not([type="checkbox"]):focus {
    border-color: #00a1e0 !important;
    box-shadow: 0 0 0 3px rgba(0, 161, 224, .25) !important;
}

.user.signin .ui.form a,
.oauth2-authorize-application-box a {
    color: #0083b8 !important;
}

.user.signin .ui.checkbox label {
    color: #64717d !important;
    font-weight: 400 !important;
}

.user.signin .ui.primary.button,
.oauth2-authorize-application-box .ui.primary.button {
    background: #00a1e0 !important;
    border: 0 !important;
    border-radius: 8px !important;
    min-height: 42px;
    font-size: 14px !important;
}

.user.signin .ui.primary.button:hover,
.oauth2-authorize-application-box .ui.primary.button:hover {
    background: #0083b8 !important;
}

.oauth2-authorize-application-box .ui.basic.button {
    border: 1px solid #e2e7ec !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

.user.signin .column::after,
.oauth2-authorize-application-box .ui.container::after {
    content: "Só entra quem foi convidado. Peça acesso ao dono do projeto.";
    display: block;
    margin-top: 18px;
    color: #8bb8d0;
    font-size: 12.5px;
    text-align: center;
}

a[href*="/org/create"],
a[href*="/explore/organizations"] {
    display: none !important;
}

a.item[href*="organizations"],
.item[data-tab="organizations"],
a[href$="/organizations"] {
    display: none !important;
}

#navbar-logo img {
    display: none !important;
}

#navbar-logo::before {
    content: "";
    display: inline-block;
    width: 120px;
    height: 40px;
    background-image: url("/assets/img/flownaweb-txt.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
}

.user.signin .signin-passkey,
.user.signin .ui.container:has(.signin-passkey):not(:has(form)),
.user.signin .ui.segment:has(.signin-passkey):not(:has(form)) {
    display: none !important;
}

html:has(.user.signin),
html:has(.oauth2-authorize-application-box) {
    background: #0a1f2e !important;
}
