body:has(.login-form) {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 15%, rgba(0, 224, 255, 0.20) 0%, transparent 30%),
    radial-gradient(circle at 85% 85%, rgba(0, 126, 255, 0.28) 0%, transparent 38%),
    linear-gradient(135deg, #061426 0%, #071f3d 45%, #00aeefff 100%);
  background-attachment: fixed;
}

body:has(.login-form)::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('/media/images/apple-touch-icon.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 320px auto;
  opacity: 0.045;
  pointer-events: none;
  z-index: 0;
}

body:has(.login-form) #main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

body:has(.login-form) #main .container {
  margin-top: 62px !important;
}

body:has(.login-form) .panel[name="form-login"] {
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.24);
  box-shadow: 0 25px 70px rgba(0,0,0,0.30);
  background: rgba(255,255,255,0.965);
  backdrop-filter: blur(10px);
}

body:has(.login-form) .panel-body {
  padding: 28px 30px 26px 30px;
}

body:has(.login-form) .dicipacs-login-logo {
  margin-bottom: 18px !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

body:has(.login-form) .dicipacs-login-logo svg {
  max-width: 205px !important;
  width: 205px !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
}

body:has(.login-form) .login-form .form-control {
  min-height: 46px;
  border-radius: 10px;
}

body:has(.login-form) .login-form .input-group-addon {
  border-radius: 10px 0 0 10px;
}

body:has(.login-form) .login-form .btn-primary,
body:has(.login-form) .login-form button[type="submit"] {
  min-height: 48px;
  border-radius: 10px;
  font-weight: 700;
  background: linear-gradient(135deg, #0077ff 0%, #00dff6 100%);
  border: none;
}

body:has(.login-form) .text-secondary {
  color: #f2f7ff !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.28);
  font-weight: 600;
  white-space: nowrap;
  width: max-content;
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 768px) {
  body:has(.login-form) #main .container {
    margin-top: 28px !important;
    padding-left: 16px;
    padding-right: 16px;
  }

  body:has(.login-form) .dicipacs-login-logo svg {
    max-width: 180px !important;
    width: 180px !important;
  }

  body:has(.login-form) .text-secondary {
    white-space: normal;
    width: auto;
    margin-left: 0;
    transform: none;
  }
}

/* DICIPACS Marketing - ajuste visual final */
body:has(.login-form) .dicipacs-login-logo svg {
  max-width: 190px !important;
  width: 190px !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
}

body:has(.login-form) .text-secondary {
  white-space: nowrap !important;
  width: max-content !important;
  max-width: none !important;
  margin-left: 50% !important;
  transform: translateX(-50%) !important;
}

@media (max-width: 768px) {
  body:has(.login-form) .text-secondary {
    white-space: normal !important;
    width: auto !important;
    margin-left: 0 !important;
    transform: none !important;
  }
}
