@import url("/branding/site-background.css");

body.task-login #layout-content {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px 0 !important;
    box-sizing: border-box;
    background: transparent !important;
}

body.task-login #logo {
    display: block;
    position: static !important;
    top: auto !important;
    opacity: 1 !important;
    width: min(380px, calc(100vw - 40px)) !important;
    height: 150px !important;
    max-height: none !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 12px 36px 0;
    box-sizing: border-box;
    object-fit: cover;
    background: white;
    border-radius: 20px 20px 0 0;
}

body.task-login #login-form {
    position: static !important;
    top: auto !important;
    width: min(380px, calc(100vw - 40px));
    max-width: none;
    margin: 0 auto !important;
    padding: 8px 28px 28px;
    box-sizing: border-box;
    background: white;
    color: #28313a;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .2);
}

body.task-login #login-form .input-group-text,
body.task-login #login-form input {
    color: #28313a;
    background: #f7f8fa;
    border-color: #dce1e7;
}

body.task-login #rcmloginsubmit {
    background: #c72d32;
    border-color: #c72d32;
    color: white;
}

body.task-login #rcmloginsubmit:hover {
    background: #a92127;
}

#layout-menu #logo {
    width: 80px;
    height: 64px;
    max-width: 100%;
    max-height: none;
    object-fit: cover;
}

/* Shared site backdrop and a spacious, single-list mail workspace. */
body:not(.task-login) #layout { background: transparent !important; }
body:not(.task-login) #layout-menu { background: rgba(6,13,34,.46) !important; border: 0; }
body:not(.task-login) #layout-menu a { color: #fff !important; }
body:not(.task-login) #layout-menu a.selected { background: rgba(255,255,255,.17) !important; }
body:not(.task-login) #layout-sidebar { background: rgba(6,13,34,.36) !important; color: #fff !important; border: 0; }
body:not(.task-login) #layout-sidebar > .header,
body:not(.task-login) #layout-sidebar > .footer { background: transparent !important; color: #fff !important; border-color: rgba(255,255,255,.12); }
body:not(.task-login) #layout-sidebar .listing li > a { color: #fff !important; border-radius: 0 22px 22px 0; margin-right: 12px; }
body:not(.task-login) #layout-sidebar .listing li.selected > a { background: rgba(255,255,255,.2) !important; font-weight: 700; }
body:not(.task-login) #layout-sidebar .listing li > a:hover { background: rgba(255,255,255,.12) !important; }
body:not(.task-login) #layout-list,
body:not(.task-login) #layout-content { border: 0; box-shadow: 0 8px 36px rgba(0,0,0,.12); }
body.task-mail #mailsearchform { margin: 10px 16px; border-radius: 28px; overflow: hidden; }
body.task-mail #mailsearchform input { border: 0; min-height: 44px; }
body.task-mail #messagelist td { padding-top: 12px; padding-bottom: 12px; }
body.task-mail #messagelist tr.unread td { font-weight: 700; }
body.task-mail #messagelist tr.selected td { background: #f9dfe1 !important; color: #292b35 !important; }
body.task-mail #taskmenu a.compose { margin: 12px 6px; border-radius: 18px; background: #c72d32 !important; box-shadow: 0 3px 12px rgba(0,0,0,.14); }
@media (min-width: 1025px) {
 body:not(.task-login) #layout { padding: 12px 12px 12px 0; gap: 0; }
 body:not(.task-login) #layout-list,
 body:not(.task-login) #layout-content { border-radius: 18px; overflow: hidden; }
 body:not(.task-login) #layout-sidebar { min-width: 230px; }
 body.task-mail #layout-list { margin-right: 0; }
}
@media (max-width: 1024px) {
 body:not(.task-login) #layout-sidebar { background: rgba(24,20,42,.98) !important; }
}
body:not(.task-login) #layout-list,
body:not(.task-login) #layout-content,
body:not(.task-login) #layout-list > .header,
body:not(.task-login) #layout-list > .footer,
body:not(.task-login) #layout-list .searchbar,
body:not(.task-login) #layout-content > .header,
body:not(.task-login) #layout-content > .footer { background: #fff !important; color: #30343b !important; }
body:not(.task-login) #layout-list a,
body:not(.task-login) #layout-content .toolbar a { color: #525862; }
body:not(.task-login) #layout-list input { color: #30343b !important; background: #f2f4f7 !important; }
body:not(.task-login) #messagelist td { color: #30343b; background: #fff; border-bottom: 1px solid #edf0f4; padding-top: 12px; padding-bottom: 12px; }
body:not(.task-login) #layout-list .searchbar { margin: 12px 18px; border: 0; border-radius: 26px; background: #f2f4f7 !important; }
body:not(.task-login) #layout-menu a.theme { display: none !important; }
@media (min-width: 1025px) {
 body.task-mail.action-none #layout-content { display: none !important; }
 body.task-mail.action-none #layout-list { flex: 1 1 auto !important; width: auto !important; max-width: none !important; }
}

.flycom-color-control { position: relative; display: flex; justify-content: center; margin: 6px auto 10px; z-index: 2000; }
.flycom-color-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #dce1e7; background: #fff; color: #273449; font-size: 25px; cursor: pointer; line-height: 1; }
.flycom-color-options { position: absolute; top: 0; left: calc(100% + 8px); min-width: 250px; padding: 8px; border: 1px solid #dce1e7; border-radius: 14px; background: #fff; box-shadow: 0 8px 30px rgba(0,0,0,.2); }
.flycom-color-options[hidden] { display: none !important; }
.flycom-color-options button { display: block; width: 100%; min-height: 44px; padding: 10px 12px; background: transparent; border: 0; border-radius: 8px; color: #273449; text-align: left; font-size: 14px; }
.flycom-color-options button:hover, .flycom-color-options button[aria-checked="true"] { background: #f9e5e7; color: #9e2027; }
.flycom-color-floating { position: fixed; top: 16px; right: 16px; margin: 0; }
.flycom-color-floating .flycom-color-options { top: 52px; right: 0; left: auto; }
html.dark-mode .flycom-color-toggle, html.dark-mode .flycom-color-options { background: #252a31; color: #dce1e7; border-color: #3a414b; }
html.dark-mode .flycom-color-options button { color: #dce1e7; }
html.dark-mode .flycom-color-options button:hover, html.dark-mode .flycom-color-options button[aria-checked="true"] { background: #40313a; color: #dfb5bb; }
html.dark-mode body.task-login #logo, html.dark-mode body.task-login #login-form { background: #252a31; color: #dce1e7; }
html.dark-mode body.task-login #login-form input, html.dark-mode body.task-login #login-form .input-group-text { background: #20252c; border-color: #3a414b; color: #dce1e7; }
html.dark-mode body:not(.task-login) #layout-list,
html.dark-mode body:not(.task-login) #layout-content,
html.dark-mode body:not(.task-login) #layout-list > .header,
html.dark-mode body:not(.task-login) #layout-list > .footer,
html.dark-mode body:not(.task-login) #layout-content > .header,
html.dark-mode body:not(.task-login) #layout-content > .footer { background: #252a31 !important; color: #dce1e7 !important; }
html.dark-mode body:not(.task-login) #messagelist td { background: #252a31; color: #dce1e7; border-color: #3a414b; }
html.dark-mode body:not(.task-login) #messagelist tr.selected td { background: #40313a !important; color: #e3c3c8 !important; }
html.dark-mode body:not(.task-login) #layout-list .searchbar, html.dark-mode body:not(.task-login) #layout-list input { background: #20252c !important; color: #dce1e7 !important; }
html.dark-mode body:not(.task-login) #layout-list a, html.dark-mode body:not(.task-login) #layout-content .toolbar a { color: #cbd5e1; }
html.dark-mode #messagecontframe iframe { background: #252a31; }

.flycom-color-options { position: fixed; z-index: 9999; left: auto; top: auto; }

html.dark-mode body { background: linear-gradient(125deg,#1c2026,#302a32) fixed !important; color:#dce1e7 !important; }
html.dark-mode body:not(.task-login) #layout-sidebar { background: rgba(37,42,49,.96) !important; }
html.dark-mode :is(.btn-primary,#rcmloginsubmit), html.dark-mode body.task-mail #taskmenu a.compose { background:#85454f !important; border-color:#985560 !important; color:#f1e8ea !important; }

.flycom-color-toolbar { position:static; flex:0 0 auto; align-self:center; margin:0 10px 0 auto; padding-left:10px; }
.flycom-color-toolbar .flycom-color-toggle { width:34px; height:34px; font-size:21px; background:transparent; border-color:transparent; }
.flycom-color-toolbar .flycom-color-toggle:hover { background:rgba(125,125,125,.12); }
