/* Norbit theme for Roundcube Elastic: navy chrome, cyan accents, matching norbit.online and the game panel. */

/* Sidebar */
#layout-menu,
html.dark-mode #layout-menu { background: #0b1320; }
#layout-menu .popover-header { display: flex; align-items: center; justify-content: center; }
#layout-menu .popover-header img#logo {
  width: 2.75rem; height: 2.75rem; max-width: 2.75rem; max-height: 2.75rem;
  object-fit: contain; border-radius: .65rem; padding: .15rem;
}
#layout-menu .menu a { color: #a9b8cf; }
#layout-menu .menu a:hover,
#layout-menu .menu a:focus { color: #e6edf6; background: #16233a; }
#layout-menu .menu a.selected,
#layout-menu .menu a.selected:hover { color: #38c6e8; background: #111c2d; }
#layout-menu .menu a.selected:before { color: #38c6e8; }

/* Primary actions */
.btn-primary,
.btn.btn-primary,
.formbuttons .btn.mainaction,
.mainaction {
  background: linear-gradient(135deg, #22d3ee, #3b82f6) !important;
  border-color: transparent !important;
  color: #04121c !important;
  font-weight: 600;
}
.btn-primary:hover,
.formbuttons .btn.mainaction:hover,
.mainaction:hover { filter: brightness(1.07); }
#layout-sidebar .header .button.compose,
.toolbar a.compose,
a.compose.button { color: #0ea5c6; }

a, .link { color: #0e95b8; }
html.dark-mode a, html.dark-mode .link { color: #38c6e8; }

/* Dark mode surfaces */
html.dark-mode body,
html.dark-mode #layout-sidebar,
html.dark-mode #layout-list,
html.dark-mode #layout-content { background-color: #0e1726; }
html.dark-mode .header,
html.dark-mode .footer { background-color: #111c2d; }

/* Login page */
body.task-login {
  background:
    radial-gradient(60rem 40rem at 15% -10%, rgba(34, 211, 238, .16), transparent 60%),
    radial-gradient(50rem 35rem at 110% 110%, rgba(59, 130, 246, .14), transparent 60%),
    #f5f8fc;
}
html.dark-mode body.task-login {
  background:
    radial-gradient(60rem 40rem at 15% -10%, rgba(34, 211, 238, .14), transparent 60%),
    radial-gradient(50rem 35rem at 110% 110%, rgba(59, 130, 246, .12), transparent 60%),
    #0b1320;
}
body.task-login #layout-content { background: transparent; }
body.task-login #login-form {
  background: #fff;
  border: 1px solid #dbe4f0;
  border-radius: 16px;
  padding: 2rem 2rem 1.5rem;
  box-shadow: 0 24px 60px rgba(11, 19, 32, .12);
}
html.dark-mode body.task-login #login-form {
  background: rgba(17, 28, 45, .92);
  border-color: #22324d;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
body.task-login #logo { max-width: min(100%, 18rem); height: auto; margin-bottom: 1rem; }
html.dark-mode body.task-login #logo { content: url("https://norbit.online/static/brand/norbit-logo-on-dark.svg"); }
html.dark-mode body.task-login #login-form .input-group-text,
html.dark-mode body.task-login #login-form input.form-control {
  background-color: #0b1320;
  border-color: #22324d;
  color: #e6edf6;
}
html.dark-mode body.task-login #login-form input.form-control:focus { border-color: #38c6e8; box-shadow: 0 0 0 2px rgba(56, 198, 232, .25); }
body.task-login #login-footer { color: #6b7d99; }

/* Sign in with Norbit (plugins/norbit_sso) */
.norbit-sso { margin-top: 1.1rem; text-align: center; }
.norbit-sso__or { display: flex; align-items: center; gap: .75rem; color: #6b7d99; font-size: .8rem; margin-bottom: 1rem; }
.norbit-sso__or::before, .norbit-sso__or::after { content: ""; flex: 1; height: 1px; background: #dbe4f0; }
html.dark-mode .norbit-sso__or::before, html.dark-mode .norbit-sso__or::after { background: #22324d; }
a.norbit-sso__btn {
  display: block; padding: .7rem 1rem; border-radius: 10px; font-weight: 600; text-decoration: none;
  color: #04121c !important; background: linear-gradient(135deg, #22d3ee, #3b82f6);
}
a.norbit-sso__btn:hover { filter: brightness(1.07); text-decoration: none; }
.norbit-sso__hint { margin: .6rem 0 0; font-size: .75rem; color: #6b7d99; }