/* =========================================
   OneForce – Dark Portal Theme (Blue Glass)
   - Dark background (subtil animierter Blue Glow)
   - Stummes Glasmorphism (dezent, edel)
   - Click-safe (pointer-events: none auf Deko)
   ========================================= */

:root{
  --of-blue: #0057B8;
  --of-cyan: #0aa1ff;
  --of-ink: #e8eef9;               /* helle Schrift auf dark */
  --of-text-dim: rgba(232,238,249,0.72);
  --of-bg-0: #05070b;
  --of-bg-1: #0a0f1a;
  --of-card: rgba(255,255,255,0.05); /* stummes Glass */
  --of-border: rgba(255,255,255,0.10);
  --of-shadow: 0 0 28px rgba(0,87,184,0.28);
  --of-shadow-strong: 0 0 50px rgba(0,87,184,0.45);
}

html, body { height: 100%; }

body{
  margin: 0;
  color: var(--of-ink);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: radial-gradient(1200px 900px at 20% 10%, #0b1422 0%, transparent 60%),
              radial-gradient(900px 700px at 85% 20%, #09172b 0%, transparent 65%),
              linear-gradient(180deg, var(--of-bg-1), var(--of-bg-0));
  position: relative;
  overflow-x: hidden;
}

/* ------- Blue Glow Layers (dekorativ, klick-durchlässig) ------- */
body::before, body::after{
  content:"";
  position: fixed;
  inset: -15%;
  pointer-events: none;   /* nie Klicks blocken */
  z-index: -2;            /* hinter allem Content */
  filter: blur(28px);
}

body::before{
  background:
    radial-gradient(40% 35% at 18% 18%, rgba(0,87,184,0.35), transparent 60%),
    radial-gradient(30% 28% at 80% 25%, rgba(10,161,255,0.25), transparent 65%),
    radial-gradient(55% 50% at 60% 85%, rgba(0,87,184,0.22), transparent 70%);
  animation: ofFloatA 14s ease-in-out infinite alternate;
  opacity: .85;
}
body::after{
  z-index: -1;
  background:
    radial-gradient(22% 20% at 88% 8%, rgba(10,161,255,0.35), transparent 70%),
    radial-gradient(18% 16% at 6% 92%, rgba(0,87,184,0.25), transparent 75%);
  animation: ofFloatB 18s ease-in-out infinite alternate;
  opacity: .6;
}

@keyframes ofFloatA{
  from { transform: translate3d(0,0,0) scale(1);   opacity:.9; }
  to   { transform: translate3d(-1.2%,1%,0) scale(1.05); opacity:.7; }
}
@keyframes ofFloatB{
  from { transform: translate3d(0,0,0) scale(1.04); opacity:.6; }
  to   { transform: translate3d(1%,-1.2%,0) scale(1);   opacity:.5; }
}
@media (prefers-reduced-motion: reduce){
  body::before, body::after { animation:none; }
}

/* ------- Public/User Intro Boxen (optional) ------- */
.of-container, .of-userintro{
  max-width: 980px;
  margin: 24px auto;
  padding: 28px;
  border-radius: 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: var(--of-card);
  border: 1px solid var(--of-border);
  box-shadow: var(--of-shadow);
}
.of-container h1, .of-userintro h2{
  margin: 0 0 8px 0;
  letter-spacing: .3px;
  color: var(--of-ink);
}
.of-container h1{ font-size: 1.9rem; color: var(--of-cyan); }
.of-userintro h2{ font-size: 1.5rem; color: var(--of-cyan); }
.of-container p, .of-userintro p{ color: var(--of-text-dim); margin: 6px 0; }

/* ------- SSO / Login ------- */
#login, .login, .sso-login, form[action*="login"]{
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 36px auto;
  padding: 24px 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.035));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--of-border);
  box-shadow: var(--of-shadow);
  color: var(--of-ink);
}

#login h1, .login h1, .sso-login h1{
  color: var(--of-blue);
  font-size: 1.7rem;
  margin-bottom: 10px;
  text-align: center;
}

#login input, .login input, .sso-login input,
#login select, .login select, .sso-login select{
  width: 100%;
  background: rgba(4,8,16,0.65);
  color: var(--of-ink);
  border: 1px solid rgba(0,87,184,0.45);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 8px 0 14px 0;
  transition: border-color .2s, box-shadow .2s, transform .05s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
#login input::placeholder{ color: rgba(232,238,249,0.45); }
#login input:focus, .login input:focus, .sso-login input:focus{
  outline: none;
  border-color: var(--of-cyan);
  box-shadow: 0 0 0 4px rgba(10,161,255,0.18);
}

#login button, .login button, .sso-login button,
#login input[type="submit"]{
  width: 100%;
  background: linear-gradient(90deg, var(--of-blue), var(--of-cyan));
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
  letter-spacing: .2px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, filter .15s ease;
  box-shadow: 0 0 22px rgba(0,87,184,0.35);
}
#login button:hover, .login button:hover, .sso-login button:hover,
#login input[type="submit"]:hover{
  transform: translateY(-1px);
  box-shadow: var(--of-shadow-strong);
  filter: brightness(1.03);
}

/* Links */
#login a, .login a, .sso-login a, a{
  color: var(--of-cyan);
}
#login a:hover, .login a:hover, .sso-login a:hover, a:hover{
  color: #39b9ff;
  text-decoration: underline;
}

/* ------- Portal / App Tiles ------- */
#portal, #apps, #main, .tiles, .app-list, .applications-list, .container, .content{
  position: relative;
  z-index: 1;
}

.app, .application, .tile, .app-tile,
.apps li a, .app-list a, .applications-list a{
  position: relative;
  display: block;
  text-decoration: none !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.035));
  border: 1px solid var(--of-border);
  border-radius: 16px;
  padding: 18px;
  color: var(--of-ink);
  box-shadow: var(--of-shadow);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.app:hover, .application:hover, .tile:hover, .app-tile:hover,
.apps li a:hover, .app-list a:hover, .applications-list a:hover{
  transform: translateY(-3px);
  box-shadow: var(--of-shadow-strong);
  border-color: rgba(10,161,255,0.35);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.045));
}

.app img, .application img, .tile img, .app-tile img,
.apps li a img, .app-list a img, .applications-list a img{
  max-width: 60px;
  border-radius: 12px;
  margin-bottom: 8px;
  display: block;
}

.app h3, .application h3, .tile h3, .app-tile h3,
.apps li a h3, .app-list a h3, .applications-list a h3{
  margin: 6px 0 0 0;
  font-size: 1rem;
  color: var(--of-ink);
}

/* Notices / Alerts */
.notice, .alert, .message, .flash, .ynh-notice{
  position: relative;
  background: rgba(0,87,184,0.12);
  border: 1px solid rgba(10,161,255,0.35);
  color: var(--of-ink);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 0 22px rgba(0,87,184,0.22);
}

/* Divider */
hr{
  border: none;
  border-top: 1px solid var(--of-border);
  margin: 16px 0;
}

/* Responsive */
@media (max-width: 720px){
  #login, .login, .sso-login { margin: 20px 16px; padding: 20px; }
  .of-container, .of-userintro { margin: 16px; padding: 18px; }
}