/*
 * DediSpace: responsive public authentication pages, October 2026.
 * Presentation only: no Form API, sign-in, reset, registration or 2FA changes.
 * Isolated to anonymous /user, /user/login, /user/password, /user/register.
 * The CorporateClean 960 Grid forces a 960px body on narrow viewports.
 */
@media screen and (max-width:960px) {
  body.dedikam-auth {
    min-width:0!important;
    width:100%!important;
    max-width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
  }
  body.dedikam-auth #content_global,
  body.dedikam-auth #top_bar,
  body.dedikam-auth #header,
  body.dedikam-auth #header-inside,
  body.dedikam-auth #content,
  body.dedikam-auth #content-inside,
  body.dedikam-auth #footer,
  body.dedikam-auth #footer-inside,
  body.dedikam-auth .container_12 {
    box-sizing:border-box!important;
    min-width:0!important;
    width:100%!important;
    max-width:100%!important;
  }
  /* Legacy theme gives #header a fixed height; allow the full logo to fit. */
  body.dedikam-auth #header,
  body.dedikam-auth #header-inside {
    height:auto!important;
    min-height:0!important;
  }
  body.dedikam-auth #content-inside #main,
  body.dedikam-auth .grid_12 {
    box-sizing:border-box!important;
    min-width:0!important;
    width:100%!important;
    max-width:100%!important;
    float:none!important;
    margin-left:0!important;
    margin-right:0!important;
  }
  body.dedikam-auth #header-inside-left {
    display:flex!important;
    position:static!important;
    float:none!important;
    justify-content:center!important;
    align-items:center!important;
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    min-height:0!important;
    margin:0!important;
    padding:12px!important;
    transform:none!important;
    text-align:center!important;
  }
  body.dedikam-auth #header-inside-left img {
    display:block!important;
    width:auto!important;
    max-width:200px!important;
    height:auto!important;
  }
  /* The legacy six-link desktop menu would overflow narrow auth screens.
     The logo, account tabs and footer remain available. */
  body.dedikam-auth #header-inside > .grid_9 { display:none!important; }
  body.dedikam-auth #credits.grid_8 {
    box-sizing:border-box!important;
    float:none!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:16px!important;
    text-align:center!important;
  }
  body.dedikam-auth #footer #credits p { overflow-wrap:anywhere; }
  body.dedikam-auth:not(.page-user-register) #content.dk-auth-page .dk-auth-layout {
    display:flex!important;
    flex-direction:column!important;
    box-sizing:border-box!important;
    width:100%!important;
    max-width:590px!important;
    margin:0 auto!important;
    padding:30px 12px 48px!important;
    gap:24px!important;
  }
  body.dedikam-auth:not(.page-user-register) #content.dk-auth-page .dk-auth-intro,
  body.dedikam-auth:not(.page-user-register) #content.dk-auth-page .dk-auth-card {
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
}
@media screen and (max-width:500px) {
  body.dedikam-auth:not(.page-user-register) #content.dk-auth-page .dk-auth-layout {
    padding:26px 12px 40px!important;
  }
  body.dedikam-auth:not(.page-user-register) #content.dk-auth-page .dk-auth-card {
    padding:23px 18px!important;
  }
  body.dedikam-auth:not(.page-user-register) #content.dk-auth-page .dk-auth-intro h1 {
    font-size:clamp(26px,8.1vw,32px)!important;
    line-height:1.19!important;
  }
}
