/* Antlia App Studio brand layer.
   Inspired by antlia.co.ke: deep navy, restrained blue accents,
   Space Grotesk headings and DM Sans interface text. MIT App Inventor
   remains licensed and attributed by its upstream notices. */
:root {
  --antlia-bg: #050a12;
  --antlia-panel: #08111d;
  --antlia-panel-raised: #0d1a2b;
  --antlia-border: rgba(142, 167, 200, .22);
  --antlia-text: #f4f7fb;
  --antlia-muted: #9caec4;
  --antlia-blue: #0843ae;
  --antlia-blue-bright: #185ddd;
  --antlia-cyan: #20b8e8;
  --antlia-light: #f4f8fd;
  --antlia-ink: #12243b;
}
body.antlia-login {
  box-sizing: border-box;
  min-height: 100vh;
  margin: 0;
  padding: 40px 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--antlia-text);
  background:
    radial-gradient(ellipse at 12% 8%, rgba(24, 93, 221, .20), transparent 35%),
    radial-gradient(ellipse at 92% 88%, rgba(32, 184, 232, .10), transparent 30%),
    var(--antlia-bg);
  font-family: 'DM Sans', Arial, sans-serif;
}
.antlia-login *, .antlia-login *::before, .antlia-login *::after { box-sizing: border-box; }
.antlia-login-shell { width: min(100%, 460px); margin: auto; }
.antlia-brand { text-align: center; margin: 0 auto 25px; }
.antlia-brand img { display: block; width: auto; max-width: 190px; max-height: 72px; object-fit: contain; margin: 0 auto 18px; }
.antlia-kicker { color: #79a7ff; font: 700 11px/1.4 'DM Sans', sans-serif; letter-spacing: .22em; }
.antlia-brand h1 { margin: 5px 0 7px; color: #fff; font: 600 clamp(30px, 6vw, 38px)/1.15 'Space Grotesk', sans-serif; }
.antlia-brand p { margin: 0; color: var(--antlia-muted); font-size: 14px; }
.antlia-login-card {
  padding: clamp(22px, 5vw, 34px);
  background: linear-gradient(155deg, rgba(13, 26, 43, .98), rgba(8, 17, 29, .98));
  border: 1px solid var(--antlia-border);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .35);
}
.antlia-login-card h2 { margin: 0 0 22px; color: var(--antlia-text); font: 600 21px/1.3 'Space Grotesk', sans-serif; text-align: left; }
.antlia-login-card center { display: block; }
.antlia-login-card table { width: 100%; border-collapse: collapse; }
.antlia-login-card table tr { display: block; margin: 0 0 14px; }
.antlia-login-card table td { display: block; padding: 0 0 6px; color: #d5e0ef; font-size: 13px; text-align: left; }
.antlia-login-card table td:empty { display: none; }
.antlia-login-card input[type=text], .antlia-login-card input[type=password] {
  width: 100%; min-height: 44px; padding: 10px 12px;
  color: var(--antlia-text); background: #050d18; border: 1px solid #263b56;
  border-radius: 4px; font: 15px 'DM Sans', sans-serif;
}
.antlia-login-card input[type=text]:focus, .antlia-login-card input[type=password]:focus {
  outline: 2px solid rgba(24, 93, 221, .35); border-color: #5a8eff;
}
.antlia-login-card input[type=submit], .antlia-login-card button {
  width: 100%; min-height: 46px; padding: 10px 16px; margin-top: 8px;
  color: white; background: linear-gradient(110deg, var(--antlia-blue), var(--antlia-blue-bright));
  border: 1px solid rgba(121, 167, 255, .5); border-radius: 4px;
  font: 700 15px 'DM Sans', sans-serif; cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}
.antlia-login-card input[type=submit]:hover, .antlia-login-card button:hover { filter: brightness(1.12); transform: translateY(-1px); }
.antlia-login-card a, .antlia-login a { color: #8bb5ff; text-decoration: none; }
.antlia-login-card a:hover, .antlia-login a:hover { color: #fff; text-decoration: underline; }
.antlia-login-card p { color: var(--antlia-muted); font-size: 13px; }
.antlia-login footer { width: min(100%, 460px); padding-top: 18px; color: #8396ad; font-size: 12px; text-align: center; }
.antlia-login footer a { margin: 0 7px; }
.antlia-login footer img { max-width: 80px; height: auto; opacity: .75; }
.antlia-login footer p { margin: 12px 0 0; }
.antlia-login [style*="color=red"], .antlia-login font[color=red] { color: #ff9d9d !important; }

/* Editor chrome: style the application frame without recolouring Blockly
   category blocks, component previews, or user-authored projects. */
body.gwt-bodyRob { font-family: 'DM Sans', Roboto, Arial, sans-serif; }
body.gwt-bodyRob a { color: var(--antlia-blue-bright); }
body.gwt-bodyRob a:hover { color: var(--antlia-cyan); }
body.gwt-bodyRob .gwt-MenuBar {
  background: #08111d;
  border-color: #1c304a;
  color: #f4f7fb;
  font-family: 'DM Sans', Roboto, Arial, sans-serif;
}
body.gwt-bodyRob .gwt-MenuBar .gwt-MenuItem { color: #e5edf8; }
body.gwt-bodyRob .gwt-MenuBar .gwt-MenuItem-selected,
body.gwt-bodyRob .gwt-MenuBar .gwt-MenuItem:hover { background: #122a49; color: #fff; }
body.gwt-bodyRob .gwt-TabBar { background: #e8f0fa; border-color: #c8d8ed; }
body.gwt-bodyRob .gwt-TabBar .gwt-TabBarItem { color: #526b7b; font-family: 'DM Sans', Roboto, Arial, sans-serif; }
body.gwt-bodyRob .gwt-TabBar .gwt-TabBarItem-selected {
  color: #0843ae; border-bottom: 3px solid #185ddd; font-weight: 700;
}
body.gwt-bodyRob .gwt-Button {
  border-radius: 4px; font-family: 'DM Sans', Roboto, Arial, sans-serif;
}
body.gwt-bodyRob input:focus, body.gwt-bodyRob select:focus, body.gwt-bodyRob textarea:focus {
  outline-color: #185ddd;
}
@media (max-width: 520px) {
  body.antlia-login { justify-content: flex-start; padding: 28px 14px 18px; }
  .antlia-brand { margin-bottom: 20px; }
  .antlia-brand img { max-width: 160px; max-height: 58px; }
  .antlia-login-card { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .antlia-login-card input[type=submit], .antlia-login-card button { transition: none; }
}
